Skip to content

Commit 85fa56f

Browse files
authored
Merge pull request #136 from django-commons/develop
make linter happy
2 parents 2b9d669 + e380820 commit 85fa56f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

django_typer/management/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,7 @@ def __new__(
19211921
try:
19221922
# avoid unnecessary work creating the TyperCommand class
19231923
# is there a less weird way to do this?
1924-
is_base_init = not TyperCommand
1924+
is_base_init = not TyperCommand # type: ignore[truthy-function]
19251925
except NameError:
19261926
is_base_init = True
19271927
typer_app = None

django_typer/management/commands/shellcompletion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def get_completions(self, args, incomplete):
553553
def call_fallback(fb: t.Optional[str]) -> None:
554554
fallback = import_string(fb) if fb else self.django_fallback
555555
if cmd_str and inspect.signature(fallback).parameters:
556-
fallback(cmd_str) # pyright: ignore[reportCallIssue]
556+
fallback(cmd_str) # type: ignore
557557
else:
558558
fallback()
559559

0 commit comments

Comments
 (0)