Skip to content

Commit b76b2af

Browse files
authored
Fix typings for unittest.TestCase.assertLessEqual (#10798)
1 parent 6074a8f commit b76b2af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/unittest/case.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ class TestCase:
126126
@overload
127127
def assertLess(self, a: _T, b: SupportsDunderGT[_T], msg: Any = None) -> None: ...
128128
@overload
129-
def assertLessEqual(self, a: SupportsDunderLT[_T], b: _T, msg: Any = None) -> None: ...
129+
def assertLessEqual(self, a: SupportsDunderLE[_T], b: _T, msg: Any = None) -> None: ...
130130
@overload
131-
def assertLessEqual(self, a: _T, b: SupportsDunderGT[_T], msg: Any = None) -> None: ...
131+
def assertLessEqual(self, a: _T, b: SupportsDunderGE[_T], msg: Any = None) -> None: ...
132132
# `assertRaises`, `assertRaisesRegex`, and `assertRaisesRegexp`
133133
# are not using `ParamSpec` intentionally,
134134
# because they might be used with explicitly wrong arg types to raise some error in tests.

0 commit comments

Comments
 (0)