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
I opened a discusson over at the Python Type School to find out how to solve this issue and it turns out that this is a bug in both mypy and pyright. The bug in pyrighthas been fixed in version 1.1.301 and I have opened an issue with mypy to fix it there. Once that has been addressed in mypy, the code you have shared here will work.
Why doesn't
asyncpg.Record
inheritcollections.abc.Mapping[str, Any]
? This is a valid code:But mypy says:
error: Argument after ** must be a mapping, not "Record"
.The text was updated successfully, but these errors were encountered: