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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.