|
|
|
|
|
by mejutoco
637 days ago
|
|
I recommend you use pydantic for type annotations. Alternatively, dataclasses. Then you pair it with typeguards @typechecked annotation and the types will be checked at runtime for each method/function. You can use mypy to check it at "compile time". Having clear data types without oop is possible, even in python. |
|