Skip to content

Commit 96731e8

Browse files
committed
Moved per-file exemption for A002 to per-line
1 parent 97f921d commit 96731e8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

cmd2/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def as_subcommand_to(
414414
Callable[[CommandParentType], argparse.ArgumentParser], # Cmd or CommandSet classmethod
415415
],
416416
*,
417-
help: Optional[str] = None,
417+
help: Optional[str] = None, # noqa: A002
418418
aliases: Optional[list[str]] = None,
419419
) -> Callable[[ArgparseCommandFunc[CommandParent]], ArgparseCommandFunc[CommandParent]]:
420420
"""

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@ per-file-ignores."cmd2/cmd2.py" = [
258258
"PYI024", # Use `typing.NamedTuple` instead of `collections.namedtuple`
259259
]
260260

261-
per-file-ignores."cmd2/decorators.py" = [
262-
"A002", # `as_subcommand_to` function argument `help` is shadowing a Python builtin
263-
]
264-
265261
per-file-ignores."docs/conf.py" = [
266262
"F401", # Unused import
267263
]

0 commit comments

Comments
 (0)