Skip to content

Commit 4b6869d

Browse files
authored
remove SupportsInt from bases of ipaddress._BaseAddress (#12765)
added in 2017: #1361 This use case no longer requires the protocol to be an actual base class.
1 parent f42ebdf commit 4b6869d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/ipaddress.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from collections.abc import Iterable, Iterator
3-
from typing import Any, Final, Generic, Literal, SupportsInt, TypeVar, overload
3+
from typing import Any, Final, Generic, Literal, TypeVar, overload
44
from typing_extensions import Self, TypeAlias
55

66
# Undocumented length constants
@@ -31,7 +31,7 @@ class _IPAddressBase:
3131
@property
3232
def version(self) -> int: ...
3333

34-
class _BaseAddress(_IPAddressBase, SupportsInt):
34+
class _BaseAddress(_IPAddressBase):
3535
def __init__(self, address: object) -> None: ...
3636
def __add__(self, other: int) -> Self: ...
3737
def __hash__(self) -> int: ...

0 commit comments

Comments
 (0)