From 6d20ea636ca7b66cec62f490ec9e42b63886c811 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 27 Feb 2024 11:55:29 -0800 Subject: [PATCH] html5lib: Fix type alias (#11480) Pretty sure this is what I meant to write in the first place. Fixes #11478 --- stubs/html5lib/html5lib/_inputstream.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/html5lib/html5lib/_inputstream.pyi b/stubs/html5lib/html5lib/_inputstream.pyi index adf8be11b..bf0479f9a 100644 --- a/stubs/html5lib/html5lib/_inputstream.pyi +++ b/stubs/html5lib/html5lib/_inputstream.pyi @@ -11,7 +11,7 @@ class _Encoding(Protocol): _UnicodeInputStream: TypeAlias = str | SupportsRead[str] _BinaryInputStream: TypeAlias = bytes | SupportsRead[bytes] -_InputStream: TypeAlias = _UnicodeInputStream # noqa: Y047 # used in other files +_InputStream: TypeAlias = _UnicodeInputStream | _BinaryInputStream # noqa: Y047 # used in other files spaceCharactersBytes: Any asciiLettersBytes: Any