Skip to content

Commit

Permalink
cast
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed May 19, 2022
1 parent db7fe7e commit bd8619c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PyPDF2/_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def createRectangleAccessor(name: str, fallback: Iterable[str]) -> property:

class Transformation:
"""
Specify a 2D transformation.
The transformation between two coordinate systems is represented by a 3-by-3
transformation matrix written as follows:
Expand Down Expand Up @@ -507,6 +507,7 @@ def mergeTransformedPage(
"""
if isinstance(ctm, Transformation):
ctm = ctm.ctm
ctm = cast(CompressedTransformationMatrix, ctm)
self._mergePage(
page2,
lambda page2Content: PageObject._addTransformationMatrix(
Expand Down

0 comments on commit bd8619c

Please sign in to comment.