-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Make bare None a partial type again #3755
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
Conversation
This gives lots of new errors in our internal codebase, so I think this PR is dead on arrival. |
I think a better idea might be to only do this for |
I wish we could do partial types across methods (and include class variables too). |
Yeah. See my comment in 3741. I'm not actually convinced this is the right idea, but I put it up in case you thought it was and wanted to merge it for 0.521. I spot-checked some of the internal errors, and a decent number were from Is this a real user-confusion issue, or is it only theoretical at this point? |
FWIW, this came form @vlasovskikh on gitter. |
@ddfisher I haven't encountered anyone besides me who complains about this problem. In PyCharm we infer |
@JukkaL, what do you think? |
If we change this, it will potentially affect a lot of existing code, so it looks we can't really include the change in the 0.521 release. Let's reconsider this for 0.530 after 0.521 has been released. Just doing this for |
I think we've basically decided we're not going to do this. |
Fixes #3741. Only merge after reading discussion in #3741 and deciding this is the right thing.