Skip to content

Commit

Permalink
chardet: UniversalDetector.feed accepts bytearray (#10107)
Browse files Browse the repository at this point in the history
Technically it accepts any buffer, but the inline type annotations
now say bytes | bytearray, so let's stick to that.

Part of #9006
  • Loading branch information
JelleZijlstra authored Apr 29, 2023
1 parent 4e52cf1 commit b9e9540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/chardet/chardet/universaldetector.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...

0 comments on commit b9e9540

Please sign in to comment.