carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
https://github.com/carbon-language/carbon-lang/blob/trunk/README.md
Other
32.31k stars 1.48k forks source link

Convert Python type hinting to be PEP-585 Compliant #4083

Closed jrmccluskey closed 4 days ago

jrmccluskey commented 4 days ago

Python PEP-585 replaces a number of typing module types with built-in equivalents and collections.abc versions as of Python 3.9, with the aim of eventually removing the typing module versions of these classes altogether. Since the minimum required version of Python listed in the Contribution Tools document is 3.9, the type hints in the various python files in the repo can be updated to this style of type hint without a need for backwards compatibility.

Feel free to close if this isn't a desired change at this time!