Skip to content

Commit 8157a6f

Browse files
authored
Typeshed cherry-pick: Improve signature of overlaps in ipaddress (#7260) (#12236)
This fixes a minor regression.
1 parent 1321e9e commit 8157a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/typeshed/stdlib/ipaddress.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class _BaseNetwork(_IPAddressBase, Container[_A], Iterable[_A], Generic[_A]):
8484
def max_prefixlen(self) -> int: ...
8585
@property
8686
def num_addresses(self) -> int: ...
87-
def overlaps(self, other: _BaseNetwork[_A]) -> bool: ...
87+
def overlaps(self, other: _BaseNetwork[IPv4Address] | _BaseNetwork[IPv6Address]) -> bool: ...
8888
@property
8989
def prefixlen(self) -> int: ...
9090
if sys.version_info >= (3, 7):

0 commit comments

Comments
 (0)