remove SupportsInt from bases of ipaddress._BaseAddress (#12765)

added in 2017: https://github.com/python/typeshed/pull/1361

This use case no longer requires the protocol to be an actual base
class.
This commit is contained in:
Stephen Morton
2024-10-09 20:32:06 -07:00
committed by GitHub
parent f42ebdfa61
commit 4b6869d572

View File

@@ -1,6 +1,6 @@
import sys
from collections.abc import Iterable, Iterator
from typing import Any, Final, Generic, Literal, SupportsInt, TypeVar, overload
from typing import Any, Final, Generic, Literal, TypeVar, overload
from typing_extensions import Self, TypeAlias
# Undocumented length constants
@@ -31,7 +31,7 @@ class _IPAddressBase:
@property
def version(self) -> int: ...
class _BaseAddress(_IPAddressBase, SupportsInt):
class _BaseAddress(_IPAddressBase):
def __init__(self, address: object) -> None: ...
def __add__(self, other: int) -> Self: ...
def __hash__(self) -> int: ...