-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Python version
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Package version
python-benedict 0.32.0
Current behavior (bug description)
from benedict import benedict
likes = {
"fruit": {
"apple": "green",
"banana": "yellow",
"raspberry": "red",
}
}
likes=benedict(likes, keyattr_enabled=True, keyattr_dynamic=False)
for k, v in likes.items():
print(k, type(v))
print(k, type(likes[k]))
Result
fruit <class 'dict'>
fruit <class 'benedict.dicts.benedict'>
Expected behavior
The item value returned by the for loop is a dict and not a benedict.dict as it should be. This behavior is intentional or is it a bug?
fruit <class 'benedict.dicts.benedict'>
fruit <class 'benedict.dicts.benedict'>
Regards
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
Done