Skip to main content

Like `typing._eval_type`, but lets older Python versions use newer typing features.

Project description


Build Status Coverage Status Supports Python versions 3.7+, including PyPy

This is a tiny package providing a replacement for typing._eval_type to support newer typing features in older Python versions.

Yes, that's very specific, and yes, typing._eval_type is a protected function that you shouldn't normally be using. Really this package is specifically made for

Currently, it allows unions to be written like int | str which is normally only supported in Python 3.10+.

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

eval_type_backport-0.0.1.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

eval_type_backport-0.0.1-py3-none-any.whl (4.7 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