Replace ParamSpec in type param list with explicit use

pull/3215/head
Matt 4 months ago
parent 251f164130
commit 7f2e364356
No known key found for this signature in database

@ -7,14 +7,17 @@ from typing import Any
from typing import Callable from typing import Callable
from typing import Concatenate from typing import Concatenate
from typing import Coroutine from typing import Coroutine
from typing import ParamSpec
from .... import host from .... import host
from ....host import Controller from ....host import Controller
BINARIES_PATH = os.environ.get("TEST_BINARIES_ROOT") BINARIES_PATH = os.environ.get("TEST_BINARIES_ROOT")
T = ParamSpec("T")
def pwndbg_test[**T](
def pwndbg_test(
test: Callable[Concatenate[Controller, T], Coroutine[Any, Any, None]], test: Callable[Concatenate[Controller, T], Coroutine[Any, Any, None]],
) -> Callable[T, None]: ) -> Callable[T, None]:
@functools.wraps(test) @functools.wraps(test)

Loading…
Cancel
Save