datetime.timedelta: Remove explicit inheritance from SupportsAbs (#8972)

Fixes #8971
This commit is contained in:
Alex Waygood
2022-10-23 23:28:44 +01:00
committed by GitHub
parent 19f57a6e57
commit 8b9b96c9f8

View File

@@ -2,7 +2,7 @@ import sys
from _typeshed import Self
from abc import abstractmethod
from time import struct_time
from typing import ClassVar, NamedTuple, NoReturn, SupportsAbs, TypeVar, overload
from typing import ClassVar, NamedTuple, NoReturn, TypeVar, overload
from typing_extensions import Literal, TypeAlias, final
if sys.version_info >= (3, 11):
@@ -159,7 +159,7 @@ class time:
_Date: TypeAlias = date
_Time: TypeAlias = time
class timedelta(SupportsAbs[timedelta]):
class timedelta:
min: ClassVar[timedelta]
max: ClassVar[timedelta]
resolution: ClassVar[timedelta]