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
I think 1 can be fixed by doing something similar to real_dataclass - the return value depends on whether it was called with parentheses or not.
And 2 can probably be fixed by not defining a new class, but rather modifying the class we're decorating.
Hi,
I seem to be running into a couple of issues when using the decorator that was recently added in #9:
Error:
TypeError: cls must be a dataclass
It seems that
cls
here is actuallyreal_dataclass.wrap
.Error:
AttributeError: 'Inner' object has no attribute 'x'
Looks like
Opt
was "replaced" withInner
, which is defined inargparse_dataclass.dataclass
.The text was updated successfully, but these errors were encountered: