html5lib: Additional types (#11411)

This commit is contained in:
Leonard Richardson
2024-02-16 00:26:25 -05:00
committed by GitHub
parent 7c3cb9971d
commit cb27610970
2 changed files with 2 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class HTMLUnicodeInputStream:
prevNumCols: int
def reset(self) -> None: ...
def openStream(self, source): ...
def position(self): ...
def position(self) -> tuple[int, int]: ...
def char(self): ...
def readChunk(self, chunkSize: Incomplete | None = None): ...
def characterErrorsUCS4(self, data) -> None: ...

View File

@@ -32,6 +32,7 @@ class HTMLParser:
lastPhase: Any
beforeRCDataPhase: Any
framesetOK: bool
tokenizer: Any
def reset(self) -> None: ...
@property
def documentEncoding(self) -> str | None: ...