Skip to content

Commit

Permalink
Expand type for EncodedT (#3472)
Browse files Browse the repository at this point in the history
As of PEP 688, type checkers will no longer implicitly consider bytearray to be compatible with bytes
  • Loading branch information
hauntsaninja authored Jan 6, 2025
1 parent e8e6d99 commit 49e434e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


Number = Union[int, float]
EncodedT = Union[bytes, memoryview]
EncodedT = Union[bytes, bytearray, memoryview]
DecodedT = Union[str, int, float]
EncodableT = Union[EncodedT, DecodedT]
AbsExpiryT = Union[int, datetime]
Expand Down

0 comments on commit 49e434e

Please sign in to comment.