-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix return types in urllib.request #2389
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
pytype fails for a reason I do not understand, although it also reports errors in unchanged files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks.
I restarted the build; hopefully it will pass.
Hm, pytype is still not happy. :( @rchen152 could you take a look? |
Sorry, I missed this notification - happened to see this just now while browsing the PRs. Pytype is probably complaining about the |
For python/typeshed#2389. I initially tried adding constandef : constantdef typeignore ... but that led to a shift/reduce conflict =( PiperOrigin-RevId: 213505250
Released pytype-2018.9.18 and reran the failing test - everything looks good now. |
Thanks for fixing this! |
* Tighten return types of URL handlers * urlopen() etc. return a modified HTTPResponse * Add missing methods to HTTPResponse
http.client.HTTPResponse
urlopen()
et al. return a modifiedHTTPResponse
HTTPErrorProcessor
methods