Skip to content

Commit a151aca

Browse files
committed
try fix test
1 parent b8e0522 commit a151aca

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

django_typer/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
"model_parser_completer",
127127
]
128128

129+
# F = t.TypeVar('F', bound=t.Callable[..., t.Any])
130+
129131

130132
def model_parser_completer(
131133
model_cls: t.Type[Model],

django_typer/tests/tests.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,13 @@ def test_command_line(self, settings=None):
14531453
)
14541454

14551455
result = run_command(
1456-
"groups", *settings, "string", " emmatc ", "strip", parse_json=False
1456+
"groups",
1457+
"--no-color",
1458+
*settings,
1459+
"string",
1460+
" emmatc ",
1461+
"strip",
1462+
parse_json=False,
14571463
)
14581464
if override:
14591465
self.assertEqual(result[0], "emmatc\n")

doc/source/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ v1.0.2
77

88
* Fixed `When usage errors are thrown the help output should be that of the subcommand invoked not the parent group. <https://github.com/bckohan/django-typer/issues/36>`_
99
* Fixed `typer installs its own system exception hook when commands are run and this may step on the installed rich hook <https://github.com/bckohan/django-typer/issues/35>`_
10+
* Fixed `Incomplete typing info for @command decorator <https://github.com/bckohan/django-typer/issues/33>`_
1011
* Fixed `Add py.typed stub <https://github.com/bckohan/django-typer/issues/31>`_
1112
* Fixed `Run type checking with django-stubs installed. <https://github.com/bckohan/django-typer/issues/30>`_
1213
* Fixed `Add pyright to linting and resolve any pyright errors. <https://github.com/bckohan/django-typer/issues/29>`_

0 commit comments

Comments
 (0)