No project description provided
Project description
typeapi
This library provides a stable API to introspect Python's typing
and typing_extensions
type hints.
Installation
$ pip install typeapi
Example
import typing, typeapi
print(typeapi.of(typing.Mapping[typing.Annotated[str, "key"], typing.Literal[True, None, 'false']]))
# Type(collections.abc.Mapping, nparams=2, args=(Annotated(Type(str, nparams=0), 'key'), Literal(values=(True, None, 'false'))))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
typeapi-0.1.0a5.tar.gz
(9.1 kB
view hashes)
Built Distribution
typeapi-0.1.0a5-py3-none-any.whl
(10.0 kB
view hashes)
Close
Hashes for typeapi-0.1.0a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c587a5907cffb4e30cb5b4390a183205566d771a3f78a230738b17943a38a2 |
|
MD5 | f4a2c4fefc48dcf54afa926b0ba381c1 |
|
BLAKE2b-256 | 6f6dfdb2b38d567faf6fa4e263f1cd8a1b27341d4f9fff1f4be6a572c5b88027 |