diff --git a/django-stubs/utils/ipv6.pyi b/django-stubs/utils/ipv6.pyi index 9027666ec..e88dcf277 100644 --- a/django-stubs/utils/ipv6.pyi +++ b/django-stubs/utils/ipv6.pyi @@ -1,3 +1,4 @@ +from ipaddress import IPv6Address from typing import Any MAX_IPV6_ADDRESS_LENGTH: int @@ -5,4 +6,4 @@ MAX_IPV6_ADDRESS_LENGTH: int def clean_ipv6_address( ip_str: Any, unpack_ipv4: bool = False, error_message: str = ..., max_length: int = 39 ) -> str: ... -def is_valid_ipv6_address(ip_str: str) -> bool: ... +def is_valid_ipv6_address(ip_str: str | IPv6Address) -> bool: ...