Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python Dataclasses

How To Define Circularly Dependent Data Classes In Python 3.7+?

Suppose that class A has a member whose type is class B, and class B has a member whose type is cla… Read more How To Define Circularly Dependent Data Classes In Python 3.7+?

Type Hint For An Instance Of A Non Specific Dataclass

I have a function that accepts an instance of any dataclass. what would be an appropriate type hint… Read more Type Hint For An Instance Of A Non Specific Dataclass

Nested Python Dataclasses With List Annotations

python ^3.7. Trying to create nested dataclasses to work with complex json response. I managed to d… Read more Nested Python Dataclasses With List Annotations