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