mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
redis: correct set command parameter types (#8536)
This commit is contained in:
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user