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
Mypy incorrectly raises an error when i return await ...
To Reproduce
I cant seem to reproduce without using SQLAlchemy, but here is an MRE with it. Its possible this issue belongs in SQLAlchemy, however i was more inclined to ask here because the second implementation works correctly
Bug Report
Mypy incorrectly raises an error when i
return await ...
To Reproduce
I cant seem to reproduce without using SQLAlchemy, but here is an MRE with it. Its possible this issue belongs in SQLAlchemy, however i was more inclined to ask here because the second implementation works correctly
I get the following error for
get_by_id
:error: Returning Any from function declared to return "Model | None" [no-any-return]
If i change the implementation to this though:
The error dissapears
Expected Behavior
Mypy should not show an error for the first implementation
Actual Behavior
It does
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: