Skip to content
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

getaddrinfo does not take bytearray #434

Merged
merged 1 commit into from
Apr 24, 2022

Conversation

hauntsaninja
Copy link
Contributor

This matches the type in typeshed. asyncio just delegates directly to socket.getaddrinfo, which does not take bytearray.

This matches the type in typeshed. asyncio just delegates directly to `socket.getaddrinfo`, which does not take bytearray.
@JelleZijlstra
Copy link
Contributor

Confirmed that getaddrinfo indeed doesn't accept bytearray: https://github.com/python/cpython/blob/b4e048411f4c62ad7343bca32c307f0bf5ef74b4/Modules/socketmodule.c#L6477

Copy link
Owner

@agronholm agronholm left a comment

Choose a reason for hiding this comment

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

Yup, indeed there is no bytearray in typeshed's getaddrinfo().

@agronholm agronholm merged commit 331bbd3 into agronholm:master Apr 24, 2022
@hauntsaninja hauntsaninja deleted the patch-2 branch January 9, 2024 23:00
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.

3 participants