You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding type hints to clinic.py will make it easier to debug, fix bugs, do code review, add new features, and triage. IMO, the churn is worth the effort in the long run.
Previous discussion
Since adding typing to the CPython code base has been a slightly controversial topic (obviously controversial for Lib/), I created a topic on Discourse and asked for feedback. So far, I have not received any discouragements :)
Feature or enhancement
Gradually add type hints to clinic.py.
Pitch
Adding type hints to clinic.py will make it easier to debug, fix bugs, do code review, add new features, and triage. IMO, the churn is worth the effort in the long run.
Previous discussion
Since adding typing to the CPython code base has been a slightly controversial topic (obviously controversial for
Lib/), I created a topic on Discourse and asked for feedback. So far, I have not received any discouragements :)Linked PRs
clinic.pyin CI #104421Tools/clinic.py#104544defaults and sentinel values #104626LandMineclass #104648Blockclass #106519Destinationclass #106655main()#107192format_docstring()#107200CRenderData.__init__#107207post_parsing()andcleanup()#107225parse_arg()methods #107288get_destination_bufferannotations #107293str_converter_key()#107294--warn-return-anysetting #107405