From d0d24b7301ce1d15529e0cade4f87f88cfbccae0 Mon Sep 17 00:00:00 2001 From: Deon Pearson <46675621+deontpearson@users.noreply.github.com> Date: Sat, 20 Aug 2022 17:21:39 +0200 Subject: [PATCH] `redis`: correct `set` command parameter types (#8536) --- stubs/redis/redis/commands/core.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = ...,