Fix type erorr in callable
This commit is contained in:
parent
4b0164770c
commit
b954af33cf
@ -56,7 +56,7 @@ def require_login(func: Callable[[Any, Any], Any]):
|
|||||||
|
|
||||||
|
|
||||||
# Type should really be Callable[[ApiServer], Any], but that will create a circular dependency
|
# Type should really be Callable[[ApiServer], Any], but that will create a circular dependency
|
||||||
def rpc_catch_errors(func: Callable[[Any], Any]):
|
def rpc_catch_errors(func: Callable[..., Any]):
|
||||||
|
|
||||||
def func_wrapper(obj, *args, **kwargs):
|
def func_wrapper(obj, *args, **kwargs):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user