diff --git a/frida/core.py b/frida/core.py index a536646..26a4da6 100644 --- a/frida/core.py +++ b/frida/core.py @@ -80,6 +80,7 @@ def _filter_missing_kwargs(d: MutableMapping[Any, Any]) -> None: R = TypeVar("R") P = ParamSpec("P") + def cancellable(f: Callable[P, R]) -> Callable[P, R]: @functools.wraps(f) def wrapper(*args: P.args, **kwargs: P.kwargs) -> R: