Skip to content

Fixed default value for traceback_show_locals.#1655

Merged
kmvanbrunt merged 1 commit intomainfrom
show_locals_default
Apr 29, 2026
Merged

Fixed default value for traceback_show_locals.#1655
kmvanbrunt merged 1 commit intomainfrom
show_locals_default

Conversation

@kmvanbrunt
Copy link
Copy Markdown
Member

No description provided.

@kmvanbrunt kmvanbrunt requested a review from tleonhardt as a code owner April 29, 2026 02:53
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.49%. Comparing base (79c984a) to head (c8674bd).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1655      +/-   ##
==========================================
- Coverage   99.51%   99.49%   -0.03%     
==========================================
  Files          21       21              
  Lines        4733     4737       +4     
==========================================
+ Hits         4710     4713       +3     
- Misses         23       24       +1     
Flag Coverage Δ
unittests 99.49% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread cmd2/cmd2.py
# If setting is not present, then return its default value.
traceback_sig = inspect.signature(Traceback.__init__)
show_locals = traceback_sig.parameters["show_locals"].default
return cast(bool, show_locals)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth saying anything in the CHANGELOG.md about this fix?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I only added this setting in beta 5.

@kmvanbrunt kmvanbrunt merged commit 0285e8e into main Apr 29, 2026
32 of 33 checks passed
@kmvanbrunt kmvanbrunt deleted the show_locals_default branch April 29, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants