Skip to content

ip_interface function accepts tuples, typing does not #8966

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

Closed
iawells opened this issue Oct 21, 2022 · 0 comments · Fixed by #9195
Closed

ip_interface function accepts tuples, typing does not #8966

iawells opened this issue Oct 21, 2022 · 0 comments · Fixed by #9195

Comments

@iawells
Copy link

iawells commented Oct 21, 2022

We have:

def ip_interface(address: _RawIPAddress | _RawNetworkPart) -> IPv4Interface | IPv6Interface: ...

But this is valid:

a: IPv4Address # e.g. = IPv4Address('10.0.0.1')

i = ip_interface((a, 24,))
i = ip_interface(('10.0.0.1', 24,))

See also: #8634 fixing #8570 - both on the analagous ip_network.

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 a pull request may close this issue.

1 participant