diff --git a/stubs/redis/redis/commands/core.pyi b/stubs/redis/redis/commands/core.pyi index 3b1f84d9c..7b97a370e 100644 --- a/stubs/redis/redis/commands/core.pyi +++ b/stubs/redis/redis/commands/core.pyi @@ -356,8 +356,8 @@ class BasicKeyCommands(Generic[_StrType]): self, name: _Key, value: _Value, - ex: None | int | timedelta = ..., - px: None | int | timedelta = ..., + ex: None | float | timedelta = ..., + px: None | float | timedelta = ..., nx: bool = ..., xx: bool = ..., keepttl: bool = ..., @@ -460,8 +460,8 @@ class AsyncBasicKeyCommands(Generic[_StrType]): self, name: _Key, value: _Value, - ex: None | int | timedelta = ..., - px: None | int | timedelta = ..., + ex: None | float | timedelta = ..., + px: None | float | timedelta = ..., nx: bool = ..., xx: bool = ..., keepttl: bool = ...,