|
1 |
| -from _typeshed import Incomplete, Unused |
| 1 | +from _typeshed import ConvertibleToInt, Incomplete, Unused |
2 | 2 | from abc import abstractmethod
|
3 | 3 | from collections.abc import Iterable, Iterator
|
4 | 4 | from typing import SupportsInt, overload
|
@@ -71,9 +71,9 @@ class IPAddress(BaseIP):
|
71 | 71 | def ipv4(self) -> Self: ...
|
72 | 72 | def ipv6(self, ipv4_compatible: bool = False) -> Self: ...
|
73 | 73 | def format(self, dialect: type[ipv6_verbose] | None = None) -> str: ...
|
74 |
| - def __or__(self, other: str | SupportsInt | SupportsIndex) -> Self: ... |
75 |
| - def __and__(self, other: str | SupportsInt | SupportsIndex) -> Self: ... |
76 |
| - def __xor__(self, other: str | SupportsInt | SupportsIndex) -> Self: ... |
| 74 | + def __or__(self, other: SupportsInt | SupportsIndex) -> Self: ... |
| 75 | + def __and__(self, other: SupportsInt | SupportsIndex) -> Self: ... |
| 76 | + def __xor__(self, other: SupportsInt | SupportsIndex) -> Self: ... |
77 | 77 | def __lshift__(self, numbits: int) -> Self: ...
|
78 | 78 | def __rshift__(self, numbits: int) -> Self: ...
|
79 | 79 | def __bool__(self) -> bool: ...
|
@@ -148,7 +148,7 @@ class IPRange(BaseIP, IPListMixin):
|
148 | 148 | def cidrs(self) -> list[IPNetwork]: ...
|
149 | 149 |
|
150 | 150 | def iter_unique_ips(*args: IPRange | _IPNetworkAddr) -> Iterator[IPAddress]: ...
|
151 |
| -def cidr_abbrev_to_verbose(abbrev_cidr: str | SupportsInt | SupportsIndex) -> str: ... |
| 151 | +def cidr_abbrev_to_verbose(abbrev_cidr: ConvertibleToInt) -> str: ... |
152 | 152 | def cidr_merge(ip_addrs: Iterable[IPRange | _IPNetworkAddr]) -> list[IPNetwork]: ...
|
153 | 153 | def cidr_exclude(target: _IPNetworkAddr, exclude: _IPNetworkAddr) -> list[IPNetwork]: ...
|
154 | 154 | def cidr_partition(
|
|
0 commit comments