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.0a4.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for typeapi-0.1.0a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 488fa99c8e08d69d4ff9d4096b6390cc576ddfa1927db97a8d7bf61332ec039f |
|
MD5 | fd5e7cfa2454e37b64c5c13e3f9c8caf |
|
BLAKE2b-256 | 0b7cbf44abc62f213ad7a375ebb968ddd0448fef6c07b587b971d1fc41a04409 |