From c37ecec4ca4df7938605c6680ef224b499f10eb8 Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Thu, 6 Jun 2024 10:38:23 -0700 Subject: [PATCH] fix #90 --- django_typer/management/__init__.py | 2 +- doc/source/changelog.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/django_typer/management/__init__.py b/django_typer/management/__init__.py index 25bb813..b9bb290 100644 --- a/django_typer/management/__init__.py +++ b/django_typer/management/__init__.py @@ -2462,7 +2462,7 @@ def command2(self, option: t.Optional[str] = None): # allow deriving commands to override handle() from BaseCommand # without triggering static type checking complaints - handle = None # type: ignore + handle: t.Callable[..., t.Any] @property def command_tree(self) -> CommandNode: diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 908cfa2..e791eed 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -2,6 +2,11 @@ Change Log ========== +v2.1.1 +====== + +* Fixed `handle = None does not work for mypy to silence type checkers `_ + v2.1.0 ======