devel/py-eval-type-backport 0.4.0 DragonFly
Like typing._eval_type, but lets older Python versions use newer typing features
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 11.5 KiB, 40.5 KiB installed
Description
eval_type_backport 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 pydantic/pydantic#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.
In the other systems
The newest version among them is 0.4.0, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/py-eval-type-backport | 0.4.0 newest | none known | - | [email protected] | - |
| FreeBSD | devel/py-eval-type-backport | 0.4.0 newest | none known | - | [email protected] | 2026-07-08 |
| MidnightBSD | devel/py-eval-type-backport | 0.4.0 newest | no data | - | [email protected] | 2026-11-05 |
| HardenedBSD | devel/py-eval-type-backport | 0.4.0 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-eval-type-backport | 0.4.0 newest | no data | - | [email protected] | - |
Version history 1
- 0.4.0
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkg install py312-eval-type-backport
From DPorts:
cd /usr/dports/devel/py-eval-type-backport && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.