Skip to content

Commit

Permalink
chardet: UniversalDetector.feed accepts bytearray
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 python#9006
  • Loading branch information
JelleZijlstra committed Apr 29, 2023
1 parent f42f665 commit c55b96f
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 c55b96f

Please sign in to comment.