Skip to content

Commit

Permalink
Add a return to html5lib.HTMLSerializer.serialize() (#12838)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman authored Oct 17, 2024
1 parent a2ee32b commit e646d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/html5lib/html5lib/serializer.pyi
Original file line number Diff line number Diff line change
@@ -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]: ...
Expand Down Expand Up @@ -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: ...

Expand Down

0 comments on commit e646d44

Please sign in to comment.