Skip to content

mypy_test.py: Skip Flask-SQLAlchemy - #7977

Merged
JelleZijlstra merged 1 commit into
python:masterfrom
AlexWaygood:mypy-crash
May 28, 2022
Merged

JelleZijlstra merged 1 commit into
python:masterfrom
AlexWaygood:mypy-crash

Conversation

@AlexWaygood

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@AlexWaygood

AlexWaygood commented May 30, 2022 •

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Member Author

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

@hauntsaninja

Copy link
Copy Markdown
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