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
This commit is contained in:
Jelle Zijlstra
2023-04-29 08:08:37 -07:00
committed by GitHub
parent 4e52cf1b71
commit b9e9540db4

View File

@@ -25,5 +25,5 @@ class UniversalDetector:
logger: Logger
def __init__(self, lang_filter: int = 31) -> None: ...
def reset(self) -> None: ...
def feed(self, byte_str: bytes) -> None: ...
def feed(self, byte_str: bytes | bytearray) -> None: ...
def close(self) -> _FinalResultType: ...