FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix various stubtest complaints on Python 3.12 by AlexWaygood · Pull Request #10691 · python/typeshed · GitHub

Repository navigation

Fix various stubtest complaints on Python 3.12 - #10691

Merged
JelleZijlstra merged 2 commits into
mainfrom
py312-stubtest
Sep 10, 2023
Merged

JelleZijlstra merged 2 commits into
mainfrom
py312-stubtest

Conversation

Copy link
Copy Markdown
Member

This fixes all remaining new-in-py312 stubtest complaints that don't already have PRs open for them:

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Comment thread stdlib/http/client.pyi
def getresponse(self) -> HTTPResponse: ...
def set_debuglevel(self, level: int) -> None: ...
if sys.version_info >= (3, 12):
def get_proxy_response_headers(self) -> HTTPMessage | None: ...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The docstring says "returns a dictionary" but that appears to be a lie, this type is right

JelleZijlstra merged commit a570fb6 into main Sep 10, 2023
JelleZijlstra deleted the py312-stubtest branch September 10, 2023 21:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL