https://github.com/niklasrosenstein/python-typeapi
Typeapi provides a sane and stable API to introspect Python type hints.
https://github.com/niklasrosenstein/python-typeapi
introspection library python reflection typing
Last synced: about 1 year ago
JSON representation
Typeapi provides a sane and stable API to introspect Python type hints.
- Host: GitHub
- URL: https://github.com/niklasrosenstein/python-typeapi
- Owner: NiklasRosenstein
- License: other
- Created: 2022-03-13T21:08:57.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2025-03-16T10:20:44.000Z (over 1 year ago)
- Last Synced: 2025-04-12T23:30:01.587Z (about 1 year ago)
- Topics: introspection, library, python, reflection, typing
- Language: Python
- Homepage: https://niklasrosenstein.github.io/python-typeapi/
- Size: 2.31 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

python-typeapi
[documentation]: https://niklasrosenstein.github.io/python-typeapi/
[](https://NiklasRosenstein.github.io/python-typeapi/)
[](https://github.com/NiklasRosenstein/python-typeapi/actions/workflows/python.yml)
The `typeapi` package provides a __unified and consistent API__ for the reflection and introspection of
Python type hints. In addition, it allows evaluating future annotations such as
[PEP585](https://peps.python.org/pep-0585/) (such as `list[str]`) and
[PEP604](https://peps.python.org/pep-0604/) (such as `int | str`) in versions that don't
natively support them.
__Requirements__:
* Python 3.8 or newer
Please file bug reports and feature requests [on GitHub](https://github.com/NiklasRosenstein/python-typeapi/issues).