METADATA 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Metadata-Version: 2.1
  2. Name: typing_extensions
  3. Version: 4.9.0
  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: Topic :: Software Development
  22. Project-URL: Bug Tracker, https://github.com/python/typing_extensions/issues
  23. Project-URL: Changes, https://github.com/python/typing_extensions/blob/main/CHANGELOG.md
  24. Project-URL: Documentation, https://typing-extensions.readthedocs.io/
  25. Project-URL: Home, https://github.com/python/typing_extensions
  26. Project-URL: Q & A, https://github.com/python/typing/discussions
  27. Project-URL: Repository, https://github.com/python/typing_extensions
  28. # Typing Extensions
  29. [![Chat at https://gitter.im/python/typing](https://badges.gitter.im/python/typing.svg)](https://gitter.im/python/typing)
  30. [Documentation](https://typing-extensions.readthedocs.io/en/latest/#) –
  31. [PyPI](https://pypi.org/project/typing-extensions/)
  32. ## Overview
  33. The `typing_extensions` module serves two related purposes:
  34. - Enable use of new type system features on older Python versions. For example,
  35. `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows
  36. users on previous Python versions to use it too.
  37. - Enable experimentation with new type system PEPs before they are accepted and
  38. added to the `typing` module.
  39. `typing_extensions` is treated specially by static type checkers such as
  40. mypy and pyright. Objects defined in `typing_extensions` are treated the same
  41. way as equivalent forms in `typing`.
  42. `typing_extensions` uses
  43. [Semantic Versioning](https://semver.org/). The
  44. major version will be incremented only for backwards-incompatible changes.
  45. Therefore, it's safe to depend
  46. on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`,
  47. where `x.y` is the first version that includes all features you need.
  48. ## Included items
  49. See [the documentation](https://typing-extensions.readthedocs.io/en/latest/#) for a
  50. complete listing of module contents.
  51. ## Contributing
  52. See [CONTRIBUTING.md](https://github.com/python/typing_extensions/blob/main/CONTRIBUTING.md)
  53. for how to contribute to `typing_extensions`.