Python developers are embracing type hints
pyrefly.org
Python developers are embracing type hints
1–10 of 581 posts
Re: Python developers are embracing type hints
#2Re: Python developers are embracing type hints
#3Re: Python developers are embracing type hints
#4I recently had to debug someone else's Python code and trying to figure out what variables are was a massive headache, especially coming from C++.
Re: Python developers are embracing type hints
#5Re: Python developers are embracing type hints
#6Doing otherwise is just asking for prod incidents.
Re: Python developers are embracing type hints
#7I recently had to debug someone else's Python code and trying to figure out what variables are was a massive headache, especially coming from C++.
I do not program that much in python, but I believe the general accepted wisdom in dynamic languages was explicit name and load of documentations (as comments and docstrings).
Re: Python developers are embracing type hints
#8I enforce strong types on all Python code I’m responsible for - and make sure others don’t play fast and loose with dict[str, Any] when they could use a well defined type. Doing otherwise is just asking for prod incidents.
I'd much rather just work in a statically typed language from the start.
Re: Python developers are embracing type hints
#9Type hints are much easier to use nowadays than they were a few years ago, because the agentic tools like Claude Code are very good at converting an existing codebase to using type hints.
Re: Python developers are embracing type hints
#10Whatever the solution is, it doesn’t include giving up on Python typings.