mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 06:45:51 +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:
1 parent
4e52cf1b71
commit
b9e9540db4
1 file changed
+1
-1
@@ -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