Enable RUF013

This commit is contained in:
Adam Turner
2024-01-04 04:06:41 +00:00
parent 7e7b3def82
commit 97a83acb17
2 changed files with 2 additions and 2 deletions

View File

@@ -240,7 +240,7 @@ select = [
"RUF010", # Use explicit conversion flag
"RUF011", # Dictionary comprehension uses static key: `{key}`
# "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
# "RUF013", # PEP 484 prohibits implicit `Optional`
"RUF013", # PEP 484 prohibits implicit `Optional`
# "RUF015", # Prefer `next({iterable})` over single element slice
"RUF016", # Slice in indexed access to type `{value_type}` uses type `{index_type}` instead of an integer
# "RUF017", # Avoid quadratic list summation

View File

@@ -39,7 +39,7 @@ def f6(x: int, *args, y: str, z: str) -> None:
pass
def f7(x: int = None, y: dict = {}) -> None: # NoQA: B006
def f7(x: int = None, y: dict = {}) -> None: # NoQA: B006,RUF013
pass