mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add a return to html5lib.HTMLSerializer.serialize() (#12838)
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator
|
||||
from typing import Any, overload
|
||||
|
||||
def htmlentityreplace_errors(exc: Exception) -> tuple[str | bytes, int]: ...
|
||||
@@ -31,7 +32,7 @@ class HTMLSerializer:
|
||||
def encode(self, string): ...
|
||||
def encodeStrict(self, string): ...
|
||||
encoding: Any
|
||||
def serialize(self, treewalker, encoding: Incomplete | None = None) -> None: ...
|
||||
def serialize(self, treewalker, encoding: Incomplete | None = None) -> Generator[Incomplete, None, None]: ...
|
||||
def render(self, treewalker, encoding: Incomplete | None = None): ...
|
||||
def serializeError(self, data: str = "XXX ERROR MESSAGE NEEDED") -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user