Skip to content

Commit b9e9540

Browse files
chardet: UniversalDetector.feed accepts bytearray (#10107)
Technically it accepts any buffer, but the inline type annotations now say bytes | bytearray, so let's stick to that. Part of #9006
1 parent 4e52cf1 commit b9e9540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/chardet/chardet/universaldetector.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ class UniversalDetector:
2525
logger: Logger
2626
def __init__(self, lang_filter: int = 31) -> None: ...
2727
def reset(self) -> None: ...
28-
def feed(self, byte_str: bytes) -> None: ...
28+
def feed(self, byte_str: bytes | bytearray) -> None: ...
2929
def close(self) -> _FinalResultType: ...

0 commit comments

Comments
 (0)