Skip to content

getaddrinfo does not take bytearray - #434

Merged
agronholm merged 1 commit into
agronholm:masterfrom
hauntsaninja:patch-2
Apr 24, 2022
Merged

getaddrinfo does not take bytearray#434
agronholm merged 1 commit into
agronholm:masterfrom
hauntsaninja:patch-2

Conversation

@hauntsaninja

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@agronholm agronholm left a comment

Copy link
Copy Markdown
Owner

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