mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Re-enable Ruff D418 (#87302)
This commit is contained in:
parent
4d4fb2477d
commit
61734f04b8
@ -123,14 +123,14 @@ def log_exception(format_err: Callable[..., Any], *args: Any) -> None:
|
|||||||
def catch_log_exception(
|
def catch_log_exception(
|
||||||
func: Callable[..., Coroutine[Any, Any, Any]], format_err: Callable[..., Any]
|
func: Callable[..., Coroutine[Any, Any, Any]], format_err: Callable[..., Any]
|
||||||
) -> Callable[..., Coroutine[Any, Any, None]]:
|
) -> Callable[..., Coroutine[Any, Any, None]]:
|
||||||
"""Overload for Coroutine that returns a Coroutine."""
|
...
|
||||||
|
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def catch_log_exception(
|
def catch_log_exception(
|
||||||
func: Callable[..., Any], format_err: Callable[..., Any]
|
func: Callable[..., Any], format_err: Callable[..., Any]
|
||||||
) -> Callable[..., None] | Callable[..., Coroutine[Any, Any, None]]:
|
) -> Callable[..., None] | Callable[..., Coroutine[Any, Any, None]]:
|
||||||
"""Overload for a callback that returns a callback."""
|
...
|
||||||
|
|
||||||
|
|
||||||
def catch_log_exception(
|
def catch_log_exception(
|
||||||
|
@ -270,7 +270,6 @@ ignore = [
|
|||||||
"D406", # Section name should end with a newline
|
"D406", # Section name should end with a newline
|
||||||
"D407", # Section name underlining
|
"D407", # Section name underlining
|
||||||
"D411", # Missing blank line before section
|
"D411", # Missing blank line before section
|
||||||
"D418", # Function decorated with `@overload` shouldn't contain a docstring
|
|
||||||
"E501", # line too long
|
"E501", # line too long
|
||||||
"E731", # do not assign a lambda expression, use a def
|
"E731", # do not assign a lambda expression, use a def
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user