mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix typings for unittest.TestCase.assertLessEqual (#10798)
This commit is contained in:
@@ -126,9 +126,9 @@ class TestCase:
|
||||
@overload
|
||||
def assertLess(self, a: _T, b: SupportsDunderGT[_T], msg: Any = None) -> None: ...
|
||||
@overload
|
||||
def assertLessEqual(self, a: SupportsDunderLT[_T], b: _T, msg: Any = None) -> None: ...
|
||||
def assertLessEqual(self, a: SupportsDunderLE[_T], b: _T, msg: Any = None) -> None: ...
|
||||
@overload
|
||||
def assertLessEqual(self, a: _T, b: SupportsDunderGT[_T], msg: Any = None) -> None: ...
|
||||
def assertLessEqual(self, a: _T, b: SupportsDunderGE[_T], msg: Any = None) -> None: ...
|
||||
# `assertRaises`, `assertRaisesRegex`, and `assertRaisesRegexp`
|
||||
# are not using `ParamSpec` intentionally,
|
||||
# because they might be used with explicitly wrong arg types to raise some error in tests.
|
||||
|
||||
Reference in New Issue
Block a user