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
Expected Behavior
No errors because db.Model is in the SQLAlchemy class of flask_sqlalchemy, so the official Python extensions shows (variable) db: SQLAlchemy when I highlight the error squiggle in VSCode.
Actual Behavior
Name "db.Model" is not defined
Your Environment
Mypy version used: 1.11.2
Mypy command-line flags: None
Mypy configuration options from mypy.ini (and other config files):
Python version used: 3.9
The text was updated successfully, but these errors were encountered:
lulunac27a
changed the title
Name "db.Model" is not defined but is defined in SQLAlchemy function from flask_sqlalchemy
Name "db.Model" is not defined in Mypy but is defined in SQLAlchemy function from flask_sqlalchemy package
Oct 11, 2024
lulunac27a
changed the title
Name "db.Model" is not defined in Mypy but is defined in SQLAlchemy function from flask_sqlalchemy package
Name "db.Model" is not defined in Mypy but is defined in SQLAlchemy function from flask_sqlalchemy package in VSCode
Oct 11, 2024
Bug Report
(A clear and concise description of what the bug is.)
To Reproduce
Expected Behavior
No errors because db.Model is in the SQLAlchemy class of flask_sqlalchemy, so the official Python extensions shows (variable) db: SQLAlchemy when I highlight the error squiggle in VSCode.
Actual Behavior
Name "db.Model" is not defined
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: