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
$ poetry run mypy mypy.py
mypy.py:1: error: Skipping analyzing "gino": module is installed, but missing library stubs or py.typed marker
mypy.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
mypy.py:5: error: Name "db.Model" is not defined
Found 2 errors in 1 file (checked 1 source file)
I can understand missing library stubs (line 1), but why line 5 has an error (mypy.py:5: error: Name "db.Model" is not defined) ?
Dependencies:
$ poetry run python --version
Python 3.9.12
$ poetry export --without-hashes
asyncpg==0.25.0; python_version >= "3.5" and python_version < "4.0" and python_full_version >= "3.6.0"
gino==1.0.1; python_version >= "3.5" and python_version < "4.0"
mypy-extensions==0.4.3; python_version >= "3.6"
mypy==0.960; python_version >= "3.6"
sqlalchemy==1.3.24; python_version >= "3.5" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.5" and python_version < "4.0" and python_full_version >= "3.4.0"
tomli==2.0.1; python_version < "3.11" and python_version >= "3.7"
typing-extensions==4.2.0; python_version >= "3.7"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Does this lib support simple mypy check?
If it does, what's wrong with the code below? It doesn't pass mypy check
I can understand missing library stubs (line 1), but why line 5 has an error (
mypy.py:5: error: Name "db.Model" is not defined
) ?Dependencies:
Beta Was this translation helpful? Give feedback.
All reactions