Skip to content

Commit

Permalink
DOC: Fix type in signature of PdfWriter.add_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jul 18, 2022
1 parent df95aae commit 0c76f75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PyPDF2/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ def removeText(
def add_uri(
self,
pagenum: int,
uri: int,
uri: str,
rect: RectangleObject,
border: Optional[ArrayObject] = None,
) -> None:
Expand All @@ -1408,7 +1408,7 @@ def add_uri(
This uses the basic structure of :meth:`add_link`
:param int pagenum: index of the page on which to place the URI action.
:param int uri: string -- uri of resource to link to.
:param str uri: URI of resource to link to.
:param rect: :class:`RectangleObject<PyPDF2.generic.RectangleObject>` or array of four
integers specifying the clickable rectangular area
``[xLL, yLL, xUR, yUR]``, or string in the form ``"[ xLL yLL xUR yUR ]"``.
Expand Down Expand Up @@ -1466,7 +1466,7 @@ def add_uri(
def addURI(
self,
pagenum: int,
uri: int,
uri: str,
rect: RectangleObject,
border: Optional[ArrayObject] = None,
) -> None: # pragma: no cover
Expand Down

0 comments on commit 0c76f75

Please sign in to comment.