From 73ef73b0e87f71abfcaa3f1237f9e57793daf6bf Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 4 Mar 2024 08:10:02 -0800 Subject: [PATCH] reformat --- qcore/decorators.pyi | 4 ++-- qcore/inspection.pyi | 2 +- qcore/testing.pyi | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcore/decorators.pyi b/qcore/decorators.pyi index 3785469..0006e30 100644 --- a/qcore/decorators.pyi +++ b/qcore/decorators.pyi @@ -43,7 +43,7 @@ _InputT = TypeVar("_InputT") _OutputT = TypeVar("_OutputT") def convert_result( - converter: Callable[[_InputT], _OutputT] + converter: Callable[[_InputT], _OutputT], ) -> Callable[[Callable[..., _InputT]], Callable[..., _OutputT]]: ... def retry( exception_cls: Union[Type[BaseException], Tuple[Type[BaseException], ...]], @@ -51,5 +51,5 @@ def retry( sleep: float = ..., ) -> Callable[[_CallableT], _CallableT]: ... def decorator_of_context_manager( - ctxt: Callable[..., ContextManager[Any]] + ctxt: Callable[..., ContextManager[Any]], ) -> Callable[..., Callable[[_CallableT], _CallableT]]: ... diff --git a/qcore/inspection.pyi b/qcore/inspection.pyi index 56c3098..6cc6687 100644 --- a/qcore/inspection.pyi +++ b/qcore/inspection.pyi @@ -24,7 +24,7 @@ def get_function_call_repr( fn: Callable[..., Any], args: Iterable[object], kwargs: Mapping[str, object] ) -> str: ... def getargspec( - func: Union[types.FunctionType, types.MethodType, Callable[..., Any]] + func: Union[types.FunctionType, types.MethodType, Callable[..., Any]], ) -> inspect.ArgSpec: ... def is_cython_or_generator(fn: object) -> bool: ... def is_cython_function(fn: object) -> bool: ... diff --git a/qcore/testing.pyi b/qcore/testing.pyi index 339a35d..56f31e1 100644 --- a/qcore/testing.pyi +++ b/qcore/testing.pyi @@ -9,8 +9,8 @@ class GreaterEq: def disabled(func_or_class: Any) -> Any: ... def decorate_all_test_methods( - decorator: Callable[[Callable[..., Any]], Any] + decorator: Callable[[Callable[..., Any]], Any], ) -> Callable[[Type[object]], Type[object]]: ... def decorate_func_or_method_or_class( - decorator: Callable[[Callable[..., Any]], Any] + decorator: Callable[[Callable[..., Any]], Any], ) -> Callable[[Any], Any]: ...