-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Flaky mypy error on typeshed test_cases #11220
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
Comments
The traceback always seems to mention
|
I managed to repro this locally, though I had to run |
They fail intermittently, see python#11220 for details.
I ran it thirty times on my Mac laptop without a repro :-/ I'll try on a Linux machine tomorrow Assuming it's related to that commit, I almost wonder if something dumb like moving the import into the same clause would fix... |
I was thinking about moving the struct into its own internal module to reduce the import cycle. (Fixing mypy would be the best course of action, although that could be hard with a non-reproducible bug.) |
Hmmm... this feels like #10714 (comment)... I wonder... Edit: no, that doesn't seem to be it. Switching to use a |
This is the tiny script I'm using to repro the crash, FWIW. It generally occurs for me within the first three iterations: import subprocess
import itertools
import sys
for i in itertools.count():
print(f"Iteration {i}")
ret = subprocess.run(
[sys.executable, "tests/regr_test.py", "--all"],
text=True
)
if ret.returncode != 0:
break |
Thanks for following up! Still not able to reproduce on Mac, but was able to reproduce on Linux. |
This should address python#11220.
I've seen this a few times recently. It goes away if you retry:
https://github.com/python/typeshed/actions/runs/7384516395/job/20087616635?pr=11219
The text was updated successfully, but these errors were encountered: