pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/typeshed/pull/15788

ts/global-10539fe0effdbc74.css" /> Correct return type of `asyncio.AbstractEventLoop.getaddrinfo` and analogs in subclasses by jonathandung · Pull Request #15788 · python/typeshed · GitHub
Skip to content

Correct return type of asyncio.AbstractEventLoop.getaddrinfo and analogs in subclasses#15788

Open
jonathandung wants to merge 2 commits into
python:mainfrom
jonathandung:patch-3
Open

Correct return type of asyncio.AbstractEventLoop.getaddrinfo and analogs in subclasses#15788
jonathandung wants to merge 2 commits into
python:mainfrom
jonathandung:patch-3

Conversation

@jonathandung
Copy link
Copy Markdown
Contributor

Both #13372 and #13596 forgot to include the async counterparts of socket.getaddrinfo, available as async methods on event loops.

@github-actions
Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/resolver.py:67:39: error: Incompatible types in assignment (expression has type "int", variable has type "str")  [assignment]
+ aiohttp/resolver.py:67:39: note: Error code "assignment" not covered by "type: ignore[misc]" comment
+ aiohttp/resolver.py:67:39: error: Incompatible types in assignment (expression has type "bytes", variable has type "int")  [assignment]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/addons/dns_resolver.py:178: error: List comprehension has incompatible type List[str | int]; expected List[str]  [misc]

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.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy