From ab0b2a706dbd2bcab0e42f8118b5093088eafbf1 Mon Sep 17 00:00:00 2001 From: Richard Lindsley Date: Wed, 6 Apr 2022 20:35:50 -0700 Subject: [PATCH] Update xtrim type annotation --- redis/commands/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,