Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Backported and experimental type hints for Python

License

NotificationsYou must be signed in to change notification settings

python/typing_extensions

Repository files navigation

Chat at https://gitter.im/python/typing

DocumentationPyPI

Overview

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 thetyping 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.

Included items

Seethe documentation for acomplete listing of module contents.

Contributing

SeeCONTRIBUTING.mdfor how to contribute totyping_extensions.

About

Backported and experimental type hints for Python

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp