typing_extensions
Stdlib — TypingPython 3.5+Intermediate
Backports of new typing features for older Python versions
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.5+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import typing_extensions print(f"Module: typing_extensions") print(f"Contents: {dir(typing_extensions)[:10]}")
The typing_extensions module is part of Python's standard library. Backports of new typing features for older Python versions.
Try in PlaygroundTags
stdlibtypingbackport
Related Items
typing
Stdlib — Typing
Type hint support: List, Dict, Optional, Union, Any, Callable, Generic, Protocol
mypy
Package — Code Quality
Static type checker for Python type annotations
pyright
Package — Code Quality
Fast type checker by Microsoft (VS Code Pylance)
pydantic
Package — Validation
Data validation using Python type annotations; settings management