Remove unused logging args parameter (#75619)

This commit is contained in:
Marc Mueller 2022-08-01 10:13:05 +02:00 committed by GitHub
parent 0738f08215
commit 81d1786a16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,22 +118,20 @@ def log_exception(format_err: Callable[..., Any], *args: Any) -> None:
@overload
def catch_log_exception(
func: Callable[..., Coroutine[Any, Any, Any]],
format_err: Callable[..., Any],
*args: Any,
func: Callable[..., Coroutine[Any, Any, Any]], format_err: Callable[..., Any]
) -> Callable[..., Coroutine[Any, Any, None]]:
"""Overload for Callables that return a Coroutine."""
@overload
def catch_log_exception(
func: Callable[..., Any], format_err: Callable[..., Any], *args: Any
func: Callable[..., Any], format_err: Callable[..., Any]
) -> Callable[..., None | Coroutine[Any, Any, None]]:
"""Overload for Callables that return Any."""
def catch_log_exception(
func: Callable[..., Any], format_err: Callable[..., Any], *args: Any
func: Callable[..., Any], format_err: Callable[..., Any]
) -> Callable[..., None | Coroutine[Any, Any, None]]:
"""Decorate a callback to catch and log exceptions."""