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
The __delitem__ works as expected when called with an enum value:
>>>delcfg[Enum1.FOO]
>>>assertEnum1.FOOnotincfg
Expected behavior:
The __delitem__ method should behave the same as __setitem__ and __getitem__: when a DictConfig instance has enum-typed keys, either a string or an enum member should be usable to specify what index will be deleted.
The text was updated successfully, but these errors were encountered:
comments
fixed docs
fixed notebook
enum_to_str: convert enum keys, not just enum values (omry#549)
README: Fix typo in "What's new" url
rebase against master
separate tests for struct mode and non-struct mode
news fragment for omry#554
one key per supported key type
Co-authored-by: Omry Yadan <[email protected]>
test None value for struct flag
special case parametrizing for struct_mode
change struct_mode test order
Given a config with Enum key-type:
normally it is possible to use either the enum value
Enum1.FOO
or thestr
value"FOO"
for access:But using string access fails when
__delitem__
is called:The
__delitem__
works as expected when called with an enum value:Expected behavior:
The
__delitem__
method should behave the same as__setitem__
and__getitem__
: when aDictConfig
instance has enum-typed keys, either a string or an enum member should be usable to specify what index will be deleted.The text was updated successfully, but these errors were encountered: