Skip to content

Commit 38dbf1e

Browse files
committed
fix --hide/show locals bug #233
1 parent 4578ca1 commit 38dbf1e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/source/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Change Log
77
v3.3.1 (2025-09-22)
88
===================
99

10+
* Fixed `--hide/show locals option on stack trace is not working as expected. <https://github.com/django-commons/django-typer/issues/233>`_
1011
* Implemented `Support typer 0.18-0.19 and click 8.3 <https://github.com/django-commons/django-typer/issues/232>`_
1112

1213
v3.3.0 (2025-08-31)

src/django_typer/types.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ def show_locals(context, param, value):
5454
from .config import traceback_config
5555
from .utils import install_traceback
5656

57-
install_traceback({**traceback_config(), "show_locals": value})
57+
install_traceback(
58+
{
59+
**traceback_config(),
60+
"show_locals": not value if param.name == "hide_locals" else value,
61+
}
62+
)
5863

5964

6065
Version = Annotated[

0 commit comments

Comments
 (0)