-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fail fast when attempting to typecheck typing.py #3725
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
Hi! Would you be able to provide some information on how you arrived at this issue? A small snippet of code would be ideal, but regardless steps to reproduce are welcome. Its difficult to figure out what is going wrong otherwise. Based on the traceback it appears to be usage of a NamedTuple? |
Hello, I guess the problem is in |
This is still a bug that we should fix, since it involves a crash. Could you share the code that reproduces the crash? |
I think the crash is type checking the stdlib. From the error I see that |
Set if __name__ == '__main__':
print("") Full console log before traceback:
|
OK, then this is duplicate of #3131 (closed now). Maybe we could try to generate a reasonable error when a user tries to typecheck |
We now fail fast when trying to add |
Do you mean |
In #5301 I modified things so that if any PATH except the PEP 561 search path contained |
The text was updated successfully, but these errors were encountered: