BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-eval-type-backport0.4.0 newestnone known-[email protected]-
FreeBSDdevel/py-eval-type-backport0.4.0 newestnone known-[email protected]2026-07-08
MidnightBSDdevel/py-eval-type-backport0.4.0 newestno data-[email protected]2026-11-05
HardenedBSDdevel/py-eval-type-backport0.4.0 newestno data-[email protected]-
GhostBSDdevel/py-eval-type-backport0.4.0 newestno data-[email protected]-

Version history 1

  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.

Dependencies

Run dependencies 1
Required by 1