typing_extensions
typing_extensions copied to clipboard
Backported and experimental type hints for Python
Depending on the python version some attributes for subcripted `TypeAliasType` are not present after the `__getitem__` call. `__name__` is present in Python 3.11+; `"__name__", "__type_params__", "__value__"` are missing in earlier...
When using a `TypeAliasType` without type_params it should raise an error which it currently doesn't: ```python from typing import TypeAliasType as typing_TA from typing_extensions import TypeAliasType # this should raise...
I'd like to propose changing the license metadata to text with the license identifier "Python-2.0" reflecting the content of the `LICENSE` file. License scanning tools such as the one GitLab...
PEP-727 proposed a new `Doc` construct, but the PEP is unlikely to be accepted and will probably be withdrawn (https://discuss.python.org/t/pep-727-documentation-metadata-in-typing/32566/181). That makes it so we have to figure out what...
`TypeAliasType` currently has some bug/limitation when using it together with a `ParamSpec` in Python Any # Error FooIntInt = Foo[[int, int]] # (int, int) -> Any # Error FooWhatever =...
https://peps.python.org/pep-0764/ ```py from typing_extensions import TypedDict foo: TypedDict[{"name": str}] = {"name": "asdf"} ``` this currently crashes at runtime: ``` TypeError: 'function' object is not subscriptable ```
I think it would be useful to have an explicit Python version support policy. Here's a few aspects I'd like to propose: - We support all feature versions (3.x) of...
We had a few bugfixes after the latest release (thanks @Daraan!), so let's put out a bugfix release for them. Please post here if you think anything else should go...
Python 3.8 has been EOL for a while now and it's getting harder to get it running in CI. Let's drop support in the next feature release.