From e463014d587eb130ed00a82e22d9f8c6aab5cbe3 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Fri, 28 Oct 2022 10:38:13 -0700 Subject: [PATCH] pyexpat: fix bytes usage --- stdlib/pyexpat/__init__.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/pyexpat/__init__.pyi b/stdlib/pyexpat/__init__.pyi index 6a4ed891fe10..cb1266cb198a 100644 --- a/stdlib/pyexpat/__init__.pyi +++ b/stdlib/pyexpat/__init__.pyi @@ -1,6 +1,6 @@ import pyexpat.errors as errors import pyexpat.model as model -from _typeshed import SupportsRead +from _typeshed import ReadableBuffer, SupportsRead from collections.abc import Callable from typing import Any from typing_extensions import TypeAlias, final @@ -25,7 +25,7 @@ _Model: TypeAlias = tuple[int, int, str | None, tuple[Any, ...]] @final class XMLParserType: - def Parse(self, __data: str | bytes, __isfinal: bool = ...) -> int: ... + def Parse(self, __data: str | ReadableBuffer, __isfinal: bool = ...) -> int: ... def ParseFile(self, __file: SupportsRead[bytes]) -> int: ... def SetBase(self, __base: str) -> None: ... def GetBase(self) -> str | None: ...