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: https://github.com/python/typeshed/pull/8634 fixing https://github.com/python/typeshed/issues/8570 - both on the analagous ip_network.