From 9ccd013e43cb8bf219692c38f2ea7717ef7dc8af Mon Sep 17 00:00:00 2001 From: Evgeniy Blinov Date: Wed, 10 Jan 2024 16:22:06 +0300 Subject: [PATCH] type hint --- exception_escaping/proxy_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exception_escaping/proxy_module.py b/exception_escaping/proxy_module.py index 0dca7a6..fd2210d 100644 --- a/exception_escaping/proxy_module.py +++ b/exception_escaping/proxy_module.py @@ -5,7 +5,7 @@ class ProxyModule(sys.modules[__name__].__class__): # type: ignore[misc] - def __call__(self, *args: Callable[..., Any], default_return: Any = None) -> Union[Callable[..., Any], Callable[Callable[..., Any], Callable[..., Any]]]: + def __call__(self, *args: Callable[..., Any], default_return: Any = None) -> Union[Callable[..., Any], Callable[[Callable[..., Any]], Callable[..., Any]]]: def wrapper_of_wrappers(function: Callable[..., Any]) -> Callable[..., Any]: @wraps(function) def wrapper(*args: Any, **kwargs: Any) -> Any: