From 4b6869d572f07ff332cc3da645f36253f2b04ad8 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Wed, 9 Oct 2024 20:32:06 -0700 Subject: [PATCH] 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. --- stdlib/ipaddress.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/ipaddress.pyi b/stdlib/ipaddress.pyi index f51ea87dc..fa2faf8e6 100644 --- a/stdlib/ipaddress.pyi +++ b/stdlib/ipaddress.pyi @@ -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: ...