METADATA 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Metadata-Version: 2.1
  2. Name: typing_extensions
  3. Version: 4.12.2
  4. Summary: Backported and Experimental Type Hints for Python 3.8+
  5. Keywords: annotations,backport,checker,checking,function,hinting,hints,type,typechecking,typehinting,typehints,typing
  6. Author-email: "Guido van Rossum, Jukka Lehtosalo, Łukasz Langa, Michael Lee" <levkivskyi@gmail.com>
  7. Requires-Python: >=3.8
  8. Description-Content-Type: text/markdown
  9. Classifier: Development Status :: 5 - Production/Stable
  10. Classifier: Environment :: Console
  11. Classifier: Intended Audience :: Developers
  12. Classifier: License :: OSI Approved :: Python Software Foundation License
  13. Classifier: Operating System :: OS Independent
  14. Classifier: Programming Language :: Python :: 3
  15. Classifier: Programming Language :: Python :: 3 :: Only
  16. Classifier: Programming Language :: Python :: 3.8
  17. Classifier: Programming Language :: Python :: 3.9
  18. Classifier: Programming Language :: Python :: 3.10
  19. Classifier: Programming Language :: Python :: 3.11
  20. Classifier: Programming Language :: Python :: 3.12
  21. Classifier: Programming Language :: Python :: 3.13
  22. Classifier: Topic :: Software Development
  23. Project-URL: Bug Tracker, https://github.com/python/typing_extensions/issues
  24. Project-URL: Changes, https://github.com/python/typing_extensions/blob/main/CHANGELOG.md
  25. Project-URL: Documentation, https://typing-extensions.readthedocs.io/
  26. Project-URL: Home, https://github.com/python/typing_extensions
  27. Project-URL: Q & A, https://github.com/python/typing/discussions
  28. Project-URL: Repository, https://github.com/python/typing_extensions
  29. # Typing Extensions
  30. [![Chat at https://gitter.im/python/typing](https://badges.gitter.im/python/typing.svg)](https://gitter.im/python/typing)
  31. [Documentation](https://typing-extensions.readthedocs.io/en/latest/#) –
  32. [PyPI](https://pypi.org/project/typing-extensions/)
  33. ## Overview
  34. The `typing_extensions` module serves two related purposes:
  35. - Enable use of new type system features on older Python versions. For example,
  36. `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows
  37. users on previous Python versions to use it too.
  38. - Enable experimentation with new type system PEPs before they are accepted and
  39. added to the `typing` module.
  40. `typing_extensions` is treated specially by static type checkers such as
  41. mypy and pyright. Objects defined in `typing_extensions` are treated the same
  42. way as equivalent forms in `typing`.
  43. `typing_extensions` uses
  44. [Semantic Versioning](https://semver.org/). The
  45. major version will be incremented only for backwards-incompatible changes.
  46. Therefore, it's safe to depend
  47. on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`,
  48. where `x.y` is the first version that includes all features you need.
  49. ## Included items
  50. See [the documentation](https://typing-extensions.readthedocs.io/en/latest/#) for a
  51. complete listing of module contents.
  52. ## Contributing
  53. See [CONTRIBUTING.md](https://github.com/python/typing_extensions/blob/main/CONTRIBUTING.md)
  54. for how to contribute to `typing_extensions`.