This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
Use covariant type Mapping instead of invariant type Dict in arguments and let's wait for mypy upstream issue about nested Union #1182
Labels
Describe the bug
I see some typecheck failures in my code using aioredis v2,
which are related to python/mypy#8554
where the arguments with generics should use covariant type
Mapping
instead ofDict
to allow aioredis user codes to be properly typechecked.To Reproduce
Type error:
Expected behavior
There should be no type error. At the runtime the code runs fine.
Logs/tracebacks
Python Version
aioredis Version
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: