New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mypy complains about config attribute #900
Comments
That's for the report. I think the issue is in the generated pyi file. IIRC it's filtered out |
CaselIT has proposed a fix for this issue in the master branch: Added missing attributes from context stubs. https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/3066 |
rohanpm
added a commit
to rohanpm/exodus-gw
that referenced
this issue
Sep 8, 2021
This reverts commit 656e2c7. That automated dependency update was wrongly merged even though it failed CI, because we had missed branch protection rules in the repo. We should not update alembic currently due to sqlalchemy/alembic#900.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Mypy generates this error on the
env.py
script:Expected behavior
No error message on
env.py
script generated by thealembic init
command.To Reproduce
Error
Versions.
Additional context
I worked around the problem by telling mypy not to check the config attribute on line 10 of
env.py
.It's just a guess, but I wondered if this type hint is confusing Mypy.
Have a nice day!
Thanks for sharing the project, and thanks for adding type hints.
The text was updated successfully, but these errors were encountered: