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

DOC: Fix type in signature of PdfWriter.add_uri #1131

Merged
merged 1 commit into from
Jul 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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