0.3.1 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseThis 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 https://github.com/pydantic/pydantic/issues/7873.
Specifically, this transforms X | Y into typing.Union[X, Y]
and list[X] into typing.List[X] etc. (for all the types made generic in PEP 585)
if the original syntax is not supported in the current Python version.
From PyPI:
pip install eval-type-backportor with Conda:
conda install -c conda-forge eval-type-backport