Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
francois committed Jan 19, 2024
1 parent 6cf7075 commit 15fbfca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypdf/generic/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,10 @@ class NameObject(str, PdfObject): # noqa: SLOT000
**{chr(i): f"#{i:02X}".encode() for i in range(33)},
}

def __init__(self, value="", encoding=None, errors="strict"):
def __init__(self, value: str = "", encoding: str = None, errors: str = "strict"):
if value[0] != "/":
value = "/" + value
super.__init__(value, encoding, errors)
super().__init__(value, encoding, errors)

def clone(
self,
Expand Down

0 comments on commit 15fbfca

Please sign in to comment.