Skip to content

Commit 1593fa3

Browse files
authored
Fix argument type of html.escape and html.unescape (#15731)
1 parent 36dcd70 commit 1593fa3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

stdlib/html/__init__.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from typing import AnyStr
2-
31
__all__ = ["escape", "unescape"]
42

5-
def escape(s: AnyStr, quote: bool = True) -> AnyStr: ...
6-
def unescape(s: AnyStr) -> AnyStr: ...
3+
def escape(s: str, quote: bool = True) -> str: ...
4+
def unescape(s: str) -> str: ...

0 commit comments

Comments
 (0)