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'm not sure how easy this is to fix in mypy; I can suggest as a workaround to rename one of the two things named app.
NOTE: Even though this works in Python, it is definitely "skating on thin ice": normally when there's a package P with a submodule M, P's namespace contains a name M referencing the module M. What you're doing here is overwriting that M with another thing also named M and imported from P.M (in your case M == app).
If it was purely my own project, I'd avoid it as bad practice. However, this technique seems to be used widely throughout many python packages, including sqlalchemy.
Example:
mypy
will complain aboutapp
being defined twice.The text was updated successfully, but these errors were encountered: