File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11version = " 1.1.*"
22upstream_repository = " https://github.com/html5lib/html5lib-python"
33
4+ requires = [" six" ]
5+
46[tool .stubtest ]
57extras = [" all" ]
Original file line number Diff line number Diff line change 11from _typeshed import Incomplete
22from collections .abc import Generator
33from typing import overload
4+ from six import text_type
5+
46
57k : str
68v : str | int
@@ -32,11 +34,11 @@ class HTMLSerializer:
3234 errors : Incomplete
3335 strict : bool
3436 def __init__ (self , ** kwargs ) -> None : ...
35- def encode (self , string ) : ...
36- def encodeStrict (self , string ) : ...
37+ def encode (self , string : text_type ) -> str : ...
38+ def encodeStrict (self , string : text_type ) -> str : ...
3739 encoding : Incomplete
38- def serialize (self , treewalker , encoding = None ) -> Generator [ Incomplete ] : ...
39- def render (self , treewalker , encoding = None ) : ...
40+ def serialize (self , treewalker : str , encoding : str ) -> str : ...
41+ def render (self , treewalker : str , encoding : str ) -> str : ...
4042 def serializeError (self , data : str = "XXX ERROR MESSAGE NEEDED" ) -> None : ...
4143
4244class SerializeError (Exception ): ...
You can’t perform that action at this time.
0 commit comments