Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Use mypy recursive type support #2898

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
MAINT: Use mypy recursive type support
In mypy>=1.7 recursive type support is built-in.
j-t-1 authored Jan 15, 2025
commit ee7deaefa93f3a83fda818f52e4ccd776dfe392e
2 changes: 1 addition & 1 deletion pypdf/types.py
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
ZoomArgType: TypeAlias = Union[NumberObject, NullObject, float]
ZoomArgsType: TypeAlias = List[ZoomArgType]

OutlineType: TypeAlias = List[Union[Destination, OutlineType]]
OutlineType: TypeAlias = List[Union[Destination, "OutlineType"]]

LayoutType: TypeAlias = Literal[
"/NoLayout",