You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for posting @tachyonicClock!
I'll take a look, but don't expect a quick fix, I'm planning a major refactor of the implementation for subgroups at the moment, which should hopefully make it a lot easier to fix these kinds of issues.
Describe the bug
When using the
simple_parsing.subgroups
function inside an optional childdata class, the default
None
value is not respected.To Reproduce
Expected behavior
The
child
field should beNone
, as it is the default value.Options(child=None)
Actual behavior
The
child
field is erroneously set toChild(subgroups=SubgroupA())
.Options(child=Child(subgroups=SubgroupA()))
Desktop (please complete the following information):
Additional context
There is no additional context.
The text was updated successfully, but these errors were encountered: