type hints in real projects #881
|
How do you handle type hints in real projects—do you fully adopt mypy/pyright, or use gradual typing, and what tradeoffs have you seen? |
Answered by
EimanTahir027
Apr 24, 2026
Replies: 1 comment
most teams that get real value from types use gradual typing with strict enforcement on new/critical code, and adopt a checker like mypy or Pyright (often both locally/CI + editor). Fully “typed everywhere from day one” is great in theory but expensive to retrofit; gradual typing hits a better cost/benefit curve. |
0 replies
Answer selected by
sudoUgando
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
most teams that get real value from types use gradual typing with strict enforcement on new/critical code, and adopt a checker like mypy or Pyright (often both locally/CI + editor). Fully “typed everywhere from day one” is great in theory but expensive to retrofit; gradual typing hits a better cost/benefit curve.