mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _markupbase import ParserBase
|
||||
from typing import List, Optional, Tuple
|
||||
from typing import List, Tuple
|
||||
|
||||
class HTMLParser(ParserBase):
|
||||
def __init__(self, *, convert_charrefs: bool = ...) -> None: ...
|
||||
@@ -7,10 +7,10 @@ class HTMLParser(ParserBase):
|
||||
def close(self) -> None: ...
|
||||
def reset(self) -> None: ...
|
||||
def getpos(self) -> Tuple[int, int]: ...
|
||||
def get_starttag_text(self) -> Optional[str]: ...
|
||||
def handle_starttag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]) -> None: ...
|
||||
def get_starttag_text(self) -> str | None: ...
|
||||
def handle_starttag(self, tag: str, attrs: List[Tuple[str, str | None]]) -> None: ...
|
||||
def handle_endtag(self, tag: str) -> None: ...
|
||||
def handle_startendtag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]) -> None: ...
|
||||
def handle_startendtag(self, tag: str, attrs: List[Tuple[str, str | None]]) -> None: ...
|
||||
def handle_data(self, data: str) -> None: ...
|
||||
def handle_entityref(self, name: str) -> None: ...
|
||||
def handle_charref(self, name: str) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user