Skip to content

Commit b2f56fd

Browse files
author
Brian Kohan
committed
fix help issues
1 parent 41c7743 commit b2f56fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_typer/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def register(
712712
return cmd.typer_app.command(
713713
name=name or _name,
714714
cls=type("_Command", (cls,), {"django_command": cmd}),
715-
help=help or _help,
715+
help=help or _help or None,
716716
**kwargs,
717717
**extra,
718718
)(callback)
@@ -2259,7 +2259,7 @@ def get_ctor(attr: t.Any) -> t.Optional[t.Callable[..., t.Any]]:
22592259
ctor(
22602260
cls,
22612261
_name=cls.typer_app.info.name,
2262-
_help=getattr(cls, "help", None),
2262+
_help=getattr(cls, "help", Default(None)),
22632263
)
22642264
else:
22652265
cls.typer_app.command(

0 commit comments

Comments
 (0)