[html5lib] Annotate more (#14994)

* Import `webencodings` to use `Encoding` class instead of `Protocol`
* Make `_inputstream.BufferedStream`, `filters.base.Filter`, `_utils.MethodDispatcher` generic
* Fix incorrect types in `_ihatexml.pyi`
* Add types for some attributes/methods
This commit is contained in:
Semyon Moroz
2025-11-14 22:04:22 +01:00
committed by GitHub
parent d58177dd23
commit 354b33a70c
17 changed files with 244 additions and 189 deletions
+1
View File
@@ -1,5 +1,6 @@
version = "1.1.*"
upstream_repository = "https://github.com/html5lib/html5lib-python"
requires = ["types-webencodings"]
[tool.stubtest]
extras = ["all"]