mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user