Skip to content

mypy_test.py: Skip Flask-SQLAlchemy #7977

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

Merged
merged 1 commit into from
May 28, 2022

Conversation

AlexWaygood
Copy link
Member

Ever since we upgraded to mypy 0.960, I've hit python/mypy#11899 every second time I run mypy_test.py locally. Mypy always crashes on Flask-SQLAlchemy, so I propose we skip mypy_test on those stubs for now, unless and until python/mypy#12324 is merged.

@JelleZijlstra JelleZijlstra merged commit 8e8176b into python:master May 28, 2022
@AlexWaygood AlexWaygood deleted the mypy-crash branch May 28, 2022 17:29
@hauntsaninja
Copy link
Collaborator

I couldn't repro, could you confirm whether python/mypy#12324 fixes?

@AlexWaygood
Copy link
Member Author

AlexWaygood commented May 30, 2022

I couldn't repro, could you confirm whether python/mypy#12324 fixes?

I'll try to confirm tomorrow if python/mypy#12324 fixes the issue.

It happened very consistently for me locally. Deleting the cache sorted it, but it would then just crash again after running mypy_test twice. And always with the exact same traceback as in python/mypy#11899

@AlexWaygood
Copy link
Member Author

I reproduced the crash on mypy master, and can confirm that python/mypy#12324 appears to fix the issue.

@hauntsaninja
Copy link
Collaborator

Thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants