Skip to content

Commit 6caad73

Browse files
committed
do not use typevar
1 parent 361b8ca commit 6caad73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/unittest/util.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ from typing import Final, Literal, TypeVar
44
from typing_extensions import TypeAlias
55

66
_T = TypeVar("_T")
7-
_Comp = TypeVar("_Comp", bound=_SupportsComparison)
87
_Mismatch: TypeAlias = tuple[_T, _T, int]
98

109
_MAX_LENGTH: Final = 80
@@ -20,6 +19,6 @@ def safe_repr(obj: object, short: bool = False) -> str: ...
2019
def strclass(cls: type) -> str: ...
2120
def sorted_list_difference(expected: Sequence[_T], actual: Sequence[_T]) -> tuple[list[_T], list[_T]]: ...
2221
def unorderable_list_difference(expected: MutableSequence[_T], actual: MutableSequence[_T]) -> tuple[list[_T], list[_T]]: ...
23-
def three_way_cmp(x: _Comp, y: _Comp) -> Literal[-1, 0, 1]: ...
22+
def three_way_cmp(x: _SupportsComparison, y: _SupportsComparison) -> Literal[-1, 0, 1]: ...
2423
def _count_diff_all_purpose(actual: Sequence[_T], expected: Sequence[_T]) -> list[_Mismatch[_T]]: ...
2524
def _count_diff_hashable(actual: Sequence[_T], expected: Sequence[_T]) -> list[_Mismatch[_T]]: ...

0 commit comments

Comments
 (0)