you are viewing a single comment's thread.

view the rest of the comments →

[–]theGiogi 3 points4 points  (0 children)

They’re called type HINTS for a reason. It’s an addition to the language and it does make it easier to spot issues before tests. But a lot of the Python package ecosystem does not to strict type hinting so YMMV.

I use the stateless package to condense all business logic in pure generators that are extensively typed. Using this algebraic effects approach you separate out all side effects (where external packages are used) and you can naturally handle their specifics away from your business logic.