Skip to content

Commit b82c8e9

Browse files
committed
Eliminated a couple per-file ruff lint exemptions and replaced one with a single line exemption
1 parent 96731e8 commit b82c8e9

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __init__(self) -> None:
199199

200200

201201
# Contains data about a disabled command which is used to restore its original functions when the command is enabled
202-
DisabledCommand = namedtuple('DisabledCommand', ['command_function', 'help_function', 'completer_function'])
202+
DisabledCommand = namedtuple('DisabledCommand', ['command_function', 'help_function', 'completer_function']) # noqa: PYI024
203203

204204

205205
if TYPE_CHECKING: # pragma: no cover

pyproject.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,6 @@ per-file-ignores."cmd2/__init__.py" = [
254254
"F401", # Unused import
255255
]
256256

257-
per-file-ignores."cmd2/cmd2.py" = [
258-
"PYI024", # Use `typing.NamedTuple` instead of `collections.namedtuple`
259-
]
260-
261-
per-file-ignores."docs/conf.py" = [
262-
"F401", # Unused import
263-
]
264-
265257
per-file-ignores."examples/override_parser.py" = [
266258
"E402", # Module level import not at top of file
267259
]

0 commit comments

Comments
 (0)