@@ -50,7 +50,7 @@ def dec(val: T) -> T:
50
50
51
51
@expected ("mod.get_local_function()" )
52
52
def get_local_function (): # noqa: ANN201
53
- def wrapper (self ) -> str : # noqa: ANN001, ARG001
53
+ def wrapper (self ) -> str : # noqa: ANN001
54
54
"""
55
55
Wrapper
56
56
"""
@@ -271,7 +271,7 @@ def __init__(self, message: str) -> None:
271
271
bytes
272
272
""" ,
273
273
)
274
- def function (x : bool , y : int , z_ : Optional [str ] = None ) -> str : # noqa: ARG001, UP007
274
+ def function (x : bool , y : int , z_ : Optional [str ] = None ) -> str : # noqa: UP007
275
275
"""
276
276
Function docstring.
277
277
@@ -299,7 +299,7 @@ def function(x: bool, y: int, z_: Optional[str] = None) -> str: # noqa: ARG001,
299
299
* ****kwargs** ("str") -- bar
300
300
""" ,
301
301
)
302
- def function_with_starred_documentation_param_names (* args : int , ** kwargs : str ): # noqa: ANN201, ARG001
302
+ def function_with_starred_documentation_param_names (* args : int , ** kwargs : str ): # noqa: ANN201
303
303
r"""
304
304
Function docstring.
305
305
@@ -322,7 +322,7 @@ def function_with_starred_documentation_param_names(*args: int, **kwargs: str):
322
322
**x** ("str") -- foo
323
323
""" ,
324
324
)
325
- def function_with_escaped_default (x : str = "\b " ): # noqa: ANN201, ARG001
325
+ def function_with_escaped_default (x : str = "\b " ): # noqa: ANN201
326
326
"""
327
327
Function docstring.
328
328
@@ -341,7 +341,7 @@ def function_with_escaped_default(x: str = "\b"): # noqa: ANN201, ARG001
341
341
**x** (a.b.c) -- foo
342
342
""" ,
343
343
)
344
- def function_with_unresolvable_annotation (x : a .b .c ): # noqa: ANN201, ARG001, F821
344
+ def function_with_unresolvable_annotation (x : a .b .c ): # noqa: ANN201, F821
345
345
"""
346
346
Function docstring.
347
347
@@ -365,8 +365,8 @@ def function_with_unresolvable_annotation(x: a.b.c): # noqa: ANN201, ARG001, F8
365
365
""" ,
366
366
)
367
367
def function_with_typehint_comment ( # noqa: ANN201
368
- x , # type: int # noqa: ANN001, ARG001
369
- y , # type: str # noqa: ANN001, ARG001
368
+ x , # type: int # noqa: ANN001
369
+ y , # type: str # noqa: ANN001
370
370
):
371
371
# type: (...) -> None
372
372
"""
@@ -457,7 +457,7 @@ def method_without_typehint(self, x): # noqa: ANN001, ANN201, ARG002, PLR6301
457
457
"None"
458
458
""" ,
459
459
)
460
- def function_with_typehint_comment_not_inline (x = None , * y , z , ** kwargs ): # noqa: ANN001, ANN002, ANN003, ANN201, ARG001
460
+ def function_with_typehint_comment_not_inline (x = None , * y , z , ** kwargs ): # noqa: ANN001, ANN002, ANN003, ANN201
461
461
# type: (Union[str, bytes, None], *str, bytes, **int) -> None
462
462
"""
463
463
Function docstring.
@@ -592,7 +592,7 @@ def __init__(self, func: Callable[[int, str], str]) -> None:
592
592
**x** ("Mailbox") -- function
593
593
""" ,
594
594
)
595
- def mocked_import (x : Mailbox ): # noqa: ANN201, ARG001
595
+ def mocked_import (x : Mailbox ): # noqa: ANN201
596
596
"""
597
597
A docstring.
598
598
@@ -648,7 +648,7 @@ def func_with_overload(a: str, b: str) -> None: ...
648
648
"None"
649
649
""" ,
650
650
)
651
- def func_with_overload (a : Union [int , str ], b : Union [int , str ]) -> None : # noqa: ARG001, UP007
651
+ def func_with_overload (a : Union [int , str ], b : Union [int , str ]) -> None : # noqa: UP007
652
652
"""
653
653
f does the thing. The arguments can either be ints or strings but they must
654
654
both have the same type.
@@ -727,7 +727,7 @@ def func_with_examples_and_returns_after() -> int:
727
727
More info about the function here.
728
728
""" ,
729
729
)
730
- def func_with_parameters_and_stuff_after (a : int , b : int ) -> int : # noqa: ARG001
730
+ def func_with_parameters_and_stuff_after (a : int , b : int ) -> int :
731
731
"""A func
732
732
733
733
:param a: a tells us something
@@ -761,7 +761,7 @@ def func_with_parameters_and_stuff_after(a: int, b: int) -> int: # noqa: ARG001
761
761
int
762
762
""" ,
763
763
)
764
- def func_with_rtype_in_weird_spot (a : int , b : int ) -> int : # noqa: ARG001
764
+ def func_with_rtype_in_weird_spot (a : int , b : int ) -> int :
765
765
"""A func
766
766
767
767
:param a: a tells us something
@@ -809,7 +809,7 @@ def func_with_rtype_in_weird_spot(a: int, b: int) -> int: # noqa: ARG001
809
809
More stuff here.
810
810
""" ,
811
811
)
812
- def empty_line_between_parameters (a : int , b : int ) -> int : # noqa: ARG001
812
+ def empty_line_between_parameters (a : int , b : int ) -> int :
813
813
"""A func
814
814
815
815
:param a: One of the following possibilities:
@@ -1002,7 +1002,7 @@ def napoleon_returns() -> CodeType:
1002
1002
1003
1003
""" ,
1004
1004
)
1005
- def google_docstrings (arg1 : CodeType , arg2 : ModuleType ) -> CodeType : # noqa: ARG001
1005
+ def google_docstrings (arg1 : CodeType , arg2 : ModuleType ) -> CodeType :
1006
1006
"""Summary line.
1007
1007
1008
1008
Extended description of function.
@@ -1034,7 +1034,7 @@ def google_docstrings(arg1: CodeType, arg2: ModuleType) -> CodeType: # noqa: AR
1034
1034
1035
1035
""" ,
1036
1036
)
1037
- def docstring_with_multiline_note_after_params (param : int ) -> None : # noqa: ARG001
1037
+ def docstring_with_multiline_note_after_params (param : int ) -> None :
1038
1038
"""Do something.
1039
1039
1040
1040
Args:
@@ -1065,7 +1065,7 @@ def docstring_with_multiline_note_after_params(param: int) -> None: # noqa: ARG
1065
1065
1066
1066
""" ,
1067
1067
)
1068
- def docstring_with_bullet_list_after_params (param : int ) -> None : # noqa: ARG001
1068
+ def docstring_with_bullet_list_after_params (param : int ) -> None :
1069
1069
"""Do something.
1070
1070
1071
1071
Args:
@@ -1098,7 +1098,7 @@ def docstring_with_bullet_list_after_params(param: int) -> None: # noqa: ARG001
1098
1098
1099
1099
""" ,
1100
1100
)
1101
- def docstring_with_definition_list_after_params (param : int ) -> None : # noqa: ARG001
1101
+ def docstring_with_definition_list_after_params (param : int ) -> None :
1102
1102
"""Do something.
1103
1103
1104
1104
Args:
@@ -1132,7 +1132,7 @@ def docstring_with_definition_list_after_params(param: int) -> None: # noqa: AR
1132
1132
1133
1133
""" ,
1134
1134
)
1135
- def docstring_with_enum_list_after_params (param : int ) -> None : # noqa: ARG001
1135
+ def docstring_with_enum_list_after_params (param : int ) -> None :
1136
1136
"""Do something.
1137
1137
1138
1138
Args:
@@ -1167,7 +1167,7 @@ def docstring_with_enum_list_after_params(param: int) -> None: # noqa: ARG001
1167
1167
-[ Example ]-
1168
1168
""" ,
1169
1169
)
1170
- def docstring_with_definition_list_after_params_no_blank_line (param : int ) -> None : # noqa: ARG001
1170
+ def docstring_with_definition_list_after_params_no_blank_line (param : int ) -> None :
1171
1171
"""Do something.
1172
1172
1173
1173
Args:
@@ -1292,7 +1292,7 @@ def typehints_use_signature(a: AsyncGenerator) -> AsyncGenerator:
1292
1292
""" ,
1293
1293
rst_prolog = prolog ,
1294
1294
)
1295
- def docstring_with_multiline_note_after_params_prolog_replace (param : int ) -> None : # noqa: ARG001
1295
+ def docstring_with_multiline_note_after_params_prolog_replace (param : int ) -> None :
1296
1296
"""Do something.
1297
1297
1298
1298
Args:
@@ -1329,7 +1329,7 @@ def docstring_with_multiline_note_after_params_prolog_replace(param: int) -> Non
1329
1329
""" ,
1330
1330
rst_epilog = epilog ,
1331
1331
)
1332
- def docstring_with_multiline_note_after_params_epilog_replace (param : int ) -> None : # noqa: ARG001
1332
+ def docstring_with_multiline_note_after_params_epilog_replace (param : int ) -> None :
1333
1333
"""Do something.
1334
1334
1335
1335
Args:
0 commit comments