From f2983e142f504d1fde7874af78975431e287043b Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Mon, 18 Jul 2022 08:53:13 +0200 Subject: [PATCH] DOC: Fix type in signature of PdfWriter.add_uri (#1131) --- PyPDF2/_writer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PyPDF2/_writer.py b/PyPDF2/_writer.py index 843549ab0..7fff8a2a3 100644 --- a/PyPDF2/_writer.py +++ b/PyPDF2/_writer.py @@ -1399,7 +1399,7 @@ def removeText( def add_uri( self, pagenum: int, - uri: int, + uri: str, rect: RectangleObject, border: Optional[ArrayObject] = None, ) -> None: @@ -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` or array of four integers specifying the clickable rectangular area ``[xLL, yLL, xUR, yUR]``, or string in the form ``"[ xLL yLL xUR yUR ]"``. @@ -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