Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Mar 4, 2024
1 parent 093421b commit 73ef73b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions qcore/decorators.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ _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], ...]],
max_tries: int = ...,
sleep: float = ...,
) -> Callable[[_CallableT], _CallableT]: ...
def decorator_of_context_manager(
ctxt: Callable[..., ContextManager[Any]]
ctxt: Callable[..., ContextManager[Any]],
) -> Callable[..., Callable[[_CallableT], _CallableT]]: ...
2 changes: 1 addition & 1 deletion qcore/inspection.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
4 changes: 2 additions & 2 deletions qcore/testing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ...

0 comments on commit 73ef73b

Please sign in to comment.