From cb27610970eb6ed146731a42a581961bb702adc2 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Fri, 16 Feb 2024 00:26:25 -0500 Subject: [PATCH] html5lib: Additional types (#11411) --- stubs/html5lib/html5lib/_inputstream.pyi | 2 +- stubs/html5lib/html5lib/html5parser.pyi | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/html5lib/html5lib/_inputstream.pyi b/stubs/html5lib/html5lib/_inputstream.pyi index cb3b9c7f6..992aaa2f0 100644 --- a/stubs/html5lib/html5lib/_inputstream.pyi +++ b/stubs/html5lib/html5lib/_inputstream.pyi @@ -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: ... diff --git a/stubs/html5lib/html5lib/html5parser.pyi b/stubs/html5lib/html5lib/html5parser.pyi index 7ef664ef3..e946f7d99 100644 --- a/stubs/html5lib/html5lib/html5parser.pyi +++ b/stubs/html5lib/html5lib/html5parser.pyi @@ -32,6 +32,7 @@ class HTMLParser: lastPhase: Any beforeRCDataPhase: Any framesetOK: bool + tokenizer: Any def reset(self) -> None: ... @property def documentEncoding(self) -> str | None: ...