Re-enable Ruff D418 (#87302)

This commit is contained in:
epenet 2023-02-03 16:33:03 +01:00 committed by GitHub
parent 4d4fb2477d
commit 61734f04b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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(

View File

@ -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
]