mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Enable RUF013
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user