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
If the default value for Unicode is traitlets.Undefined, then why is it type string when tested? How can you enforce CLI definition of an attribute if it self-massages to ""?
#732
Open
metaperl opened this issue
May 27, 2022
· 2 comments
While Undefined is the default value for the default_value argument to the __init__ function, it is never actually used as a value for a trait. It is a placeholder to indicate that there was no override of the default value. When no such override is given, this value is used:
The code below shows that even though
x
is never given a value, it is an empty string.Why do the docs for
Unicode
statedefault_value=traitlets.Undefined
yet the type is string when tested?Output
The text was updated successfully, but these errors were encountered: