Skip to content

Commit a37786f

Browse files
committed
support typer >=0.20 fix #241
1 parent f4292bb commit a37786f

File tree

5 files changed

+709
-374
lines changed

5 files changed

+709
-374
lines changed

doc/source/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Change Log
55
==========
66

7+
v3.4.0 (2025-10-20)
8+
===================
9+
10+
* Support Typer version >=0.20
11+
712
v3.3.2 (2025-09-27)
813
===================
914

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "django-typer"
7-
version = "3.3.2"
7+
version = "3.4.0"
88
requires-python = ">=3.9,<4.0"
99
description = "Use Typer to define the CLI for your Django management commands."
1010
authors = [
@@ -22,7 +22,7 @@ dependencies = [
2222
# typer's release history is full of breaking changes for minor versions
2323
# given the reliance on some of its private internals we peg the typer
2424
# version very strictly to bug fix releases for specific minor lines.
25-
"typer-slim>=0.18.0,<0.20.0",
25+
"typer-slim>=0.20.0,<0.21.0",
2626
"shellingham>=1.5.4,<2.0",
2727
# we need this on 3.9 for ParamSpec
2828
"typing-extensions>=3.7.4.3; python_version < '3.10'",

src/django_typer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
and keep a tight version lock on Typer.
4141
"""
4242

43-
VERSION = (3, 3, 2)
43+
VERSION = (3, 4, 0)
4444

4545
__title__ = "Django Typer"
4646
__version__ = ".".join(str(i) for i in VERSION)

src/django_typer/management/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ def __init__(
952952
# Rich settings
953953
rich_markup_mode: typer.core.MarkupMode = Default(DEFAULT_MARKUP_MODE),
954954
rich_help_panel: t.Union[str, None] = Default(None),
955+
suggest_commands: bool = True,
955956
pretty_exceptions_enable: bool = True,
956957
pretty_exceptions_show_locals: bool = False,
957958
pretty_exceptions_short: bool = True,
@@ -990,6 +991,7 @@ def __init__(
990991
add_completion=add_completion,
991992
rich_markup_mode=rich_markup_mode,
992993
rich_help_panel=rich_help_panel,
994+
suggest_commands=suggest_commands,
993995
pretty_exceptions_enable=pretty_exceptions_enable,
994996
pretty_exceptions_show_locals=pretty_exceptions_show_locals,
995997
pretty_exceptions_short=pretty_exceptions_short,
@@ -2036,6 +2038,7 @@ def __new__(
20362038
deprecated: bool = Default(False),
20372039
rich_markup_mode: typer.core.MarkupMode = Default(DEFAULT_MARKUP_MODE),
20382040
rich_help_panel: t.Union[str, None] = Default(None),
2041+
suggest_commands: bool = True,
20392042
pretty_exceptions_enable: t.Union[DefaultPlaceholder, bool] = Default(True),
20402043
pretty_exceptions_show_locals: t.Union[DefaultPlaceholder, bool] = Default(
20412044
False
@@ -2107,6 +2110,7 @@ def command_bases() -> t.Generator[t.Type[TyperCommand], None, None]:
21072110
add_completion=False, # see autocomplete command instead!
21082111
rich_markup_mode=rich_markup_mode,
21092112
rich_help_panel=rich_help_panel,
2113+
suggest_commands=suggest_commands,
21102114
pretty_exceptions_enable=pretty_exceptions_enable,
21112115
pretty_exceptions_show_locals=t.cast(
21122116
bool, pretty_exceptions_show_locals

0 commit comments

Comments
 (0)