mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Use ParamSpec in unittest.async_case (#7011)
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
from typing import Any, Awaitable, Callable
|
||||
from typing import Awaitable, Callable
|
||||
from typing_extensions import ParamSpec
|
||||
|
||||
from .case import TestCase
|
||||
|
||||
_P = ParamSpec("_P")
|
||||
|
||||
class IsolatedAsyncioTestCase(TestCase):
|
||||
async def asyncSetUp(self) -> None: ...
|
||||
async def asyncTearDown(self) -> None: ...
|
||||
def addAsyncCleanup(self, __func: Callable[..., Awaitable[Any]], *args: Any, **kwargs: Any) -> None: ...
|
||||
def addAsyncCleanup(self, __func: Callable[_P, Awaitable[object]], *args: _P.args, **kwargs: _P.kwargs) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user