@@ -2,7 +2,6 @@ from _typeshed import Incomplete
22from abc import abstractmethod
33from collections .abc import Callable , Iterable , Mapping
44from typing import Any , Final , Literal , TypeVar , overload
5- from typing_extensions import LiteralString
65
76_T = TypeVar ("_T" )
87
@@ -116,7 +115,7 @@ class PDFString(PDFObject):
116115 def __init__ (self , s : str | bytes | PDFString , escape : int = 1 , enc : str = "auto" ) -> None : ...
117116 def format (self , document ) -> bytes : ...
118117
119- def PDFName (data , lo = "!" , hi = "~" ) -> LiteralString : ...
118+ def PDFName (data , lo = "!" , hi = "~" ) -> str : ...
120119
121120class PDFDictionary (PDFObject ):
122121 multiline : bool
@@ -397,7 +396,7 @@ class LinkAnnotation(Annotation):
397396 Destination : Incomplete
398397 otherkw : dict [str , Incomplete ]
399398 def __init__ (self , Rect , Contents , Destination , Border : str = "[0 0 1]" , ** kw ) -> None : ...
400- def dummyDictString (self ) -> LiteralString : ...
399+ def dummyDictString (self ) -> str : ...
401400 def Dict (self ) -> PDFDictionary : ...
402401
403402class HighlightAnnotation (Annotation ):
0 commit comments