Skip to content

Commit c37ecec

Browse files
committed
fix #90
1 parent f4db401 commit c37ecec

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

django_typer/management/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ def command2(self, option: t.Optional[str] = None):
24622462

24632463
# allow deriving commands to override handle() from BaseCommand
24642464
# without triggering static type checking complaints
2465-
handle = None # type: ignore
2465+
handle: t.Callable[..., t.Any]
24662466

24672467
@property
24682468
def command_tree(self) -> CommandNode:

doc/source/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Change Log
33
==========
44

5+
v2.1.1
6+
======
7+
8+
* Fixed `handle = None does not work for mypy to silence type checkers <https://github.com/bckohan/django-typer/issues/90>`_
9+
510
v2.1.0
611
======
712

0 commit comments

Comments
 (0)