You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
The Redis eval method uses *keys_and_args: EncodableT to type variable arguments, but the evalsha method uses *keys_and_args: str. It should allow all the encodable types as arguments.
To Reproduce
In aioredis 2.0.0:
awaitredis.evalsha(sha, num_keys, b'foo', 'bar')
Run mypy and observe the following error:
Argument 3 to "evalsha" of "Redis" has incompatible type "bytes"; expected "str"
Expected behavior
In an evalsha call, the 3rd argument and beyond should allow any encodable type without causing typing errors in mypy.
Logs/tracebacks
Argument 3 to "evalsha" of "Redis" has incompatible type "bytes"; expected "str"
Describe the bug
The Redis
eval
method uses*keys_and_args: EncodableT
to type variable arguments, but theevalsha
method uses*keys_and_args: str
. It should allow all the encodable types as arguments.To Reproduce
In aioredis 2.0.0:
Run
mypy
and observe the following error:Expected behavior
In an
evalsha
call, the 3rd argument and beyond should allow any encodable type without causing typing errors inmypy
.Logs/tracebacks
aioredis Version
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: