diff --git a/redis/commands/core.py b/redis/commands/core.py index 606256a33c..14428bbf96 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -3799,7 +3799,7 @@ def xrevrange( def xtrim( self, name: KeyT, - maxlen: int, + maxlen: Union[int, None], approximate: bool = True, minid: Union[StreamIdT, None] = None, limit: Union[int, None] = None,