Skip to content

Commit 5fbc1ee

Browse files
committed
🚨 ignore reportIncompatibleMethodOverride on ClickAliasedGroup for intentional overwrite
1 parent b048783 commit 5fbc1ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

nb_cli/cli/customize.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ def __init__(self, *args, **kwargs):
2323
self._commands: dict[str, list[str]] = {}
2424
self._aliases: dict[str, str] = {}
2525

26-
def command(self, *args, **kwargs):
26+
def command( # pyright: ignore[reportIncompatibleMethodOverride]
27+
self, *args, **kwargs
28+
):
2729
cls = kwargs.pop("cls", ClickAliasedCommand)
2830
return super().command(*args, cls=cls, **kwargs)
2931

30-
def group(self, *args, **kwargs):
32+
def group( # pyright: ignore[reportIncompatibleMethodOverride]
33+
self, *args, **kwargs
34+
):
3135
aliases: list[str] | None = kwargs.pop("aliases", None)
3236
decorator = super().group(*args, **kwargs)
3337
if not aliases:

0 commit comments

Comments
 (0)