Skip to content

Commit dcd0a5a

Browse files
authored
Fix print_shtab incorrectly parsed from environment variable (#726)
1 parent 6fcc860 commit dcd0a5a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ The semantic versioning only considers the public API as described in
1212
paths are considered internals and can change in minor and patch releases.
1313

1414

15+
v4.40.1 (2025-05-??)
16+
--------------------
17+
18+
Fixed
19+
^^^^^
20+
- ``print_shtab`` incorrectly parsed from environment variable (`#725
21+
<https://github.com/omni-us/jsonargparse/pull/725>`__).
22+
23+
1524
v4.40.0 (2025-05-16)
1625
--------------------
1726

jsonargparse/_actions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def remove(actions):
139139

140140

141141
def filter_default_actions(actions):
142-
default = (_HelpAction, _ActionHelpClassPath, _ActionPrintConfig)
142+
from ._completions import ShtabAction
143+
144+
default = (_HelpAction, _ActionHelpClassPath, _ActionPrintConfig, ShtabAction)
143145
if isinstance(actions, list):
144146
return [a for a in actions if not isinstance(a, default)]
145147
return {k: a for k, a in actions.items() if not isinstance(a, default)}

0 commit comments

Comments
 (0)