File tree Expand file tree Collapse file tree 4 files changed +18
-7
lines changed
tests/stubtest_allowlists Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change
1
+ import sys
2
+ from typing import NoReturn
3
+
1
4
class ParserBase :
2
5
def __init__ (self ) -> None : ...
3
- def error (self , message : str ) -> None : ...
4
6
def reset (self ) -> None : ...
5
7
def getpos (self ) -> tuple [int , int ]: ...
6
8
def unknown_decl (self , data : str ) -> None : ...
9
+ def parse_comment (self , i : int , report : int = ...) -> int : ... # undocumented
10
+ def parse_declaration (self , i : int ) -> int : ... # undocumented
11
+ def parse_marked_section (self , i : int , report : int = ...) -> int : ... # undocumented
12
+ def updatepos (self , i : int , j : int ) -> int : ... # undocumented
13
+ if sys .version_info < (3 , 10 ):
14
+ # Removed from ParserBase: https://bugs.python.org/issue31844
15
+ def error (self , message : str ) -> NoReturn : ... # undocumented
16
+ lineno : int # undocumented
17
+ offset : int # undocumented
Original file line number Diff line number Diff line change 1
1
from _markupbase import ParserBase
2
- from typing import Tuple
2
+ from typing import Pattern , Tuple
3
3
4
4
class HTMLParser (ParserBase ):
5
5
def __init__ (self , * , convert_charrefs : bool = ...) -> None : ...
@@ -28,3 +28,8 @@ class HTMLParser(ParserBase):
28
28
def parse_pi (self , i : int ) -> int : ... # undocumented
29
29
def parse_starttag (self , i : int ) -> int : ... # undocumented
30
30
def set_cdata_mode (self , elem : str ) -> None : ... # undocumented
31
+ rawdata : str # undocumented
32
+ cdata_elem : str | None # undocumented
33
+ convert_charrefs : bool # undocumented
34
+ interesting : Pattern [str ] # undocumented
35
+ lasttag : str # undocumented
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ pstats.SortKey.__new__
121
121
tkinter.EventType.__new__
122
122
123
123
# Rest of these errors are new in Python 3.10:
124
- _markupbase.ParserBase.error
125
124
asyncio.proactor_events._ProactorReadPipeTransport.__init__
126
125
distutils.command.bdist_wininst
127
126
py_compile.main
Original file line number Diff line number Diff line change @@ -546,10 +546,6 @@ pkgutil.ImpLoader.source
546
546
# ==========
547
547
__main__.\w+
548
548
_json.encode_basestring
549
- _markupbase.ParserBase.parse_comment
550
- _markupbase.ParserBase.parse_declaration
551
- _markupbase.ParserBase.parse_marked_section
552
- _markupbase.ParserBase.updatepos
553
549
_thread.LockType.acquire_lock
554
550
_thread.LockType.locked_lock
555
551
_thread.LockType.release_lock
You can’t perform that action at this time.
0 commit comments