Skip to content

Commit 4c48fd6

Browse files
authored
pyexpat: fix bytes usage (#9017)
1 parent c5fe795 commit 4c48fd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/pyexpat/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pyexpat.errors as errors
22
import pyexpat.model as model
3-
from _typeshed import SupportsRead
3+
from _typeshed import ReadableBuffer, SupportsRead
44
from collections.abc import Callable
55
from typing import Any
66
from typing_extensions import TypeAlias, final
@@ -25,7 +25,7 @@ _Model: TypeAlias = tuple[int, int, str | None, tuple[Any, ...]]
2525

2626
@final
2727
class XMLParserType:
28-
def Parse(self, __data: str | bytes, __isfinal: bool = ...) -> int: ...
28+
def Parse(self, __data: str | ReadableBuffer, __isfinal: bool = ...) -> int: ...
2929
def ParseFile(self, __file: SupportsRead[bytes]) -> int: ...
3030
def SetBase(self, __base: str) -> None: ...
3131
def GetBase(self) -> str | None: ...

0 commit comments

Comments
 (0)