Commit 9c8ad16
Fix type hints for spop and srandmember methods (#3943)
The spop() and srandmember() methods were missing Awaitable in their
return type hints, causing type errors when used with async Redis
clients. Updated both methods to return Union[Awaitable[Union[str,
List, None]], str, List, None] to properly support both sync and
async usage, matching the pattern used by other set commands like
smembers, smismember, and smove.
Fixes #3886
Co-authored-by: petyaslavova <petya.slavova@redis.com>1 parent 34c73c7 commit 9c8ad16
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3761 | 3761 | | |
3762 | 3762 | | |
3763 | 3763 | | |
3764 | | - | |
| 3764 | + | |
| 3765 | + | |
| 3766 | + | |
3765 | 3767 | | |
3766 | 3768 | | |
3767 | 3769 | | |
| |||
3772 | 3774 | | |
3773 | 3775 | | |
3774 | 3776 | | |
3775 | | - | |
| 3777 | + | |
3776 | 3778 | | |
3777 | 3779 | | |
3778 | 3780 | | |
| |||
0 commit comments