typing
typing copied to clipboard
Python static typing home. Hosts the documentation and a user help forum.
Context: at my company, we have a wildly used framework that at the time of writing didn't consider good static type hints for the framework **users** as one of the...
Can we have more Protocols in typing.py? Like SupportsLt(about `__lt__`), SupportsLe, SupportsEq, SupportsNe, SupportsGe, SupportsGt.
Suppose I have a type of function called CommandHandler, that is a function that receives a command as its first parameter but then could have other parameters. Examples ``` class...
Over at https://discuss.python.org/t/allow-package-references-as-version-specifiers/19226/ someone asked for a packaging feature to help keep type stub packages set to the same version as their parent package. https://discuss.python.org/t/allow-package-references-as-version-specifiers/19226/17 has a suggestion on how...
Currently, Python has no consistent way to indicate when a programming language is represented as a string that the string follows the syntax of a particular programming language. This means...
In #1678 I added an automated tool for scoring the conformance test suite, and #1682 and #1683 added some features to support edge cases. Now I am working on going...
I don't know if this was already considered and rejected (I didn't find an existing issue about it), but I noticed today that some key concepts and terms used in...
With regards to the numeric tower, PEP 484 [states](https://peps.python.org/pep-0484/#the-numeric-tower): > [PEP 3141](https://peps.python.org/pep-3141/) defines Python’s numeric tower, and the stdlib module `numbers` implements the corresponding ABCs (`Number`, `Complex`, `Real`, `Rational` and...
### Issue According to the discussion https://github.com/python/typing/discussions/1305, “type checkers allow incompatible `__init__` overrides, because flagging them would be too disruptive.” Accepting above as de facto, the example given as the...