Skip to content

Commit

Permalink
Typeshed cherry-pick: Improve signature of overlaps in ipaddress (#7260
Browse files Browse the repository at this point in the history
…) (#12236)

This fixes a minor regression.
  • Loading branch information
JukkaL committed Feb 22, 2022
1 parent 1321e9e commit 8157a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/typeshed/stdlib/ipaddress.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class _BaseNetwork(_IPAddressBase, Container[_A], Iterable[_A], Generic[_A]):
def max_prefixlen(self) -> int: ...
@property
def num_addresses(self) -> int: ...
def overlaps(self, other: _BaseNetwork[_A]) -> bool: ...
def overlaps(self, other: _BaseNetwork[IPv4Address] | _BaseNetwork[IPv6Address]) -> bool: ...
@property
def prefixlen(self) -> int: ...
if sys.version_info >= (3, 7):
Expand Down

0 comments on commit 8157a6f

Please sign in to comment.