@@ -25,14 +25,14 @@ XML_PARAM_ENTITY_PARSING_ALWAYS: int
25
25
_Model = Tuple [int , int , Optional [str ], tuple ]
26
26
27
27
class XMLParserType (object ):
28
- def Parse (self , data : Union [Text , bytes ], isfinal : bool = ...) -> int : ...
29
- def ParseFile (self , file : _Reader ) -> int : ...
30
- def SetBase (self , base : Text ) -> None : ...
28
+ def Parse (self , __data : Union [Text , bytes ], __isfinal : bool = ...) -> int : ...
29
+ def ParseFile (self , __file : _Reader ) -> int : ...
30
+ def SetBase (self , __base : Text ) -> None : ...
31
31
def GetBase (self ) -> Optional [str ]: ...
32
32
def GetInputContext (self ) -> Optional [bytes ]: ...
33
- def ExternalEntityParserCreate (self , context : Optional [Text ], encoding : Text = ...) -> XMLParserType : ...
34
- def SetParamEntityParsing (self , flag : int ) -> int : ...
35
- def UseForeignDTD (self , flag : bool = ...) -> None : ...
33
+ def ExternalEntityParserCreate (self , __context : Optional [Text ], __encoding : Text = ...) -> XMLParserType : ...
34
+ def SetParamEntityParsing (self , __flag : int ) -> int : ...
35
+ def UseForeignDTD (self , __flag : bool = ...) -> None : ...
36
36
buffer_size : int
37
37
buffer_text : bool
38
38
buffer_used : int
@@ -71,5 +71,6 @@ class XMLParserType(object):
71
71
NotStandaloneHandler : Optional [Callable [[], int ]]
72
72
ExternalEntityRefHandler : Optional [Callable [[str , Optional [str ], Optional [str ], Optional [str ]], int ]]
73
73
74
- def ErrorString (errno : int ) -> str : ...
75
- def ParserCreate (encoding : Optional [Text ] = ..., namespace_separator : Optional [Text ] = ...) -> XMLParserType : ...
74
+ def ErrorString (__code : int ) -> str : ...
75
+ # intern is undocumented
76
+ def ParserCreate (encoding : Optional [Text ] = ..., namespace_separator : Optional [Text ] = ..., intern : Optional [Dict [str , Any ]] = ...) -> XMLParserType : ...
0 commit comments