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.0.tar.gz
(9.7 kB
view hashes)
Built Distribution
typeapi-0.1.0-py3-none-any.whl
(10.6 kB
view hashes)