diff --git a/homeassistant/util/logging.py b/homeassistant/util/logging.py index 0595e4bb90a..9bcae1e7c74 100644 --- a/homeassistant/util/logging.py +++ b/homeassistant/util/logging.py @@ -123,14 +123,14 @@ def log_exception(format_err: Callable[..., Any], *args: Any) -> None: def catch_log_exception( func: Callable[..., Coroutine[Any, Any, Any]], format_err: Callable[..., Any] ) -> Callable[..., Coroutine[Any, Any, None]]: - """Overload for Coroutine that returns a Coroutine.""" + ... @overload def catch_log_exception( func: Callable[..., Any], format_err: Callable[..., Any] ) -> Callable[..., None] | Callable[..., Coroutine[Any, Any, None]]: - """Overload for a callback that returns a callback.""" + ... def catch_log_exception( diff --git a/pyproject.toml b/pyproject.toml index 95616930ab2..35dcfe5193a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -270,7 +270,6 @@ ignore = [ "D406", # Section name should end with a newline "D407", # Section name underlining "D411", # Missing blank line before section - "D418", # Function decorated with `@overload` shouldn't contain a docstring "E501", # line too long "E731", # do not assign a lambda expression, use a def ]