65
65
) -> bool | None : ...
66
66
67
67
if sys .version_info >= (3 , 8 ):
68
- def addModuleCleanup (__function : Callable [_P , object ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
68
+ def addModuleCleanup (__function : Callable [_P , Any ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
69
69
def doModuleCleanups () -> None : ...
70
70
71
71
if sys .version_info >= (3 , 11 ):
@@ -158,7 +158,7 @@ class TestCase:
158
158
self ,
159
159
expected_exception : type [BaseException ] | tuple [type [BaseException ], ...],
160
160
expected_regex : str | bytes | Pattern [str ] | Pattern [bytes ],
161
- callable : Callable [..., object ],
161
+ callable : Callable [..., Any ],
162
162
* args : Any ,
163
163
** kwargs : Any ,
164
164
) -> None : ...
@@ -174,7 +174,7 @@ class TestCase:
174
174
def assertWarns ( # type: ignore[misc]
175
175
self ,
176
176
expected_warning : type [Warning ] | tuple [type [Warning ], ...],
177
- callable : Callable [_P , object ],
177
+ callable : Callable [_P , Any ],
178
178
* args : _P .args ,
179
179
** kwargs : _P .kwargs ,
180
180
) -> None : ...
@@ -187,7 +187,7 @@ class TestCase:
187
187
self ,
188
188
expected_warning : type [Warning ] | tuple [type [Warning ], ...],
189
189
expected_regex : str | bytes | Pattern [str ] | Pattern [bytes ],
190
- callable : Callable [_P , object ],
190
+ callable : Callable [_P , Any ],
191
191
* args : _P .args ,
192
192
** kwargs : _P .kwargs ,
193
193
) -> None : ...
@@ -273,17 +273,17 @@ class TestCase:
273
273
def id (self ) -> str : ...
274
274
def shortDescription (self ) -> str | None : ...
275
275
if sys .version_info >= (3 , 8 ):
276
- def addCleanup (self , __function : Callable [_P , object ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
276
+ def addCleanup (self , __function : Callable [_P , Any ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
277
277
else :
278
- def addCleanup (self , function : Callable [_P , object ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
278
+ def addCleanup (self , function : Callable [_P , Any ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
279
279
280
280
if sys .version_info >= (3 , 11 ):
281
281
def enterContext (self , cm : AbstractContextManager [_T ]) -> _T : ...
282
282
283
283
def doCleanups (self ) -> None : ...
284
284
if sys .version_info >= (3 , 8 ):
285
285
@classmethod
286
- def addClassCleanup (cls , __function : Callable [_P , object ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
286
+ def addClassCleanup (cls , __function : Callable [_P , Any ], * args : _P .args , ** kwargs : _P .kwargs ) -> None : ...
287
287
@classmethod
288
288
def doClassCleanups (cls ) -> None : ...
289
289
@@ -316,9 +316,9 @@ class TestCase:
316
316
class FunctionTestCase (TestCase ):
317
317
def __init__ (
318
318
self ,
319
- testFunc : Callable [[], object ],
320
- setUp : Callable [[], object ] | None = ...,
321
- tearDown : Callable [[], object ] | None = ...,
319
+ testFunc : Callable [[], Any ],
320
+ setUp : Callable [[], Any ] | None = ...,
321
+ tearDown : Callable [[], Any ] | None = ...,
322
322
description : str | None = ...,
323
323
) -> None : ...
324
324
def runTest (self ) -> None : ...
0 commit comments