is_valid_ipv6_address
Return whether the ip_addr object is a valid IPv6 address.
def is_valid_ipv6_address(
ip_addr: Union[str, IPv6Address]
) - > boolean
Return whether the ip_addr object is a valid IPv6 address.
Parameters
| Name | Type | Description |
|---|---|---|
| ip_addr | Union[str, IPv6Address] | The IP address object or string representation to be validated |
Returns
| Type | Description |
|---|---|
boolean | True if the input is a valid IPv6Address object or a string that can be parsed as an IPv6 address, False otherwise |