Skip to content

Commit 4863913

Browse files
hauntsaninjavladvildanov
authored andcommitted
Expand type for EncodedT (#3472)
As of PEP 688, type checkers will no longer implicitly consider bytearray to be compatible with bytes
1 parent bc917db commit 4863913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
Number = Union[int, float]
23-
EncodedT = Union[bytes, memoryview]
23+
EncodedT = Union[bytes, bytearray, memoryview]
2424
DecodedT = Union[str, int, float]
2525
EncodableT = Union[EncodedT, DecodedT]
2626
AbsExpiryT = Union[int, datetime]

0 commit comments

Comments
 (0)