Skip to main content

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


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.6.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

typeapi-0.1.6-py3-none-any.whl (12.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page