Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork117
Backported and experimental type hints for Python
License
python/typing_extensions
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Thetyping_extensions
module serves two related purposes:
- Enable use of new type system features on older Python versions. For example,
typing.TypeGuard
is new in Python 3.10, buttyping_extensions
allowsusers on previous Python versions to use it too. - Enable experimentation with new type system PEPs before they are accepted andadded to the
typing
module.
typing_extensions
is treated specially by static type checkers such asmypy and pyright. Objects defined intyping_extensions
are treated the sameway as equivalent forms intyping
.
typing_extensions
usesSemantic Versioning. Themajor version will be incremented only for backwards-incompatible changes.Therefore, it's safe to dependontyping_extensions
like this:typing_extensions >=x.y, <(x+1)
,wherex.y
is the first version that includes all features you need.
Seethe documentation for acomplete listing of module contents.
SeeCONTRIBUTING.mdfor how to contribute totyping_extensions
.
About
Backported and experimental type hints for Python
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.