Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork130
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.TypeGuardis new in Python 3.10, buttyping_extensionsallowsusers on previous Python versions to use it too. - Enable experimentation with new type system PEPs before they are accepted andadded to the
typingmodule.
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,wherex.y is the first version that includes all features you need.Thisis equivalent totyping_extensions >=x.y, <(x+1). Do not depend on~= x.y.zunless you really know what you're doing; that defeats the purpose ofsemantic versioning.
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
Contributing
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.