From e26b7791630a884a767023360abe4d9e300e9c05 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 8 May 2026 22:05:17 +0200 Subject: [PATCH] Fix argument type of html.escape and html.unescape --- stdlib/html/__init__.pyi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stdlib/html/__init__.pyi b/stdlib/html/__init__.pyi index afba90832535..8ad72f126588 100644 --- a/stdlib/html/__init__.pyi +++ b/stdlib/html/__init__.pyi @@ -1,6 +1,4 @@ -from typing import AnyStr - __all__ = ["escape", "unescape"] -def escape(s: AnyStr, quote: bool = True) -> AnyStr: ... -def unescape(s: AnyStr) -> AnyStr: ... +def escape(s: str, quote: bool = True) -> str: ... +def unescape(s: str) -> str: ...