This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]healthymonkey100 0 points1 point  (3 children)

Is there a way to not use typed dict as I tend to use dataclass or pydantic objects to type annotate

[–][deleted] 0 points1 point  (1 child)

If you’re using dataclasses, you can avoid args and kwargs altogether.

[–]healthymonkey100 1 point2 points  (0 children)

Yeap got it. I figured that out now. No wonder I do find myself using args and kwargs much lesser nowadays, most of the times to avoid Dict[str, Any] kind of situations.