Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_box_create_on_get is ignored with from_yaml #275

Open
wrdls opened this issue Jul 4, 2024 · 0 comments
Open

default_box_create_on_get is ignored with from_yaml #275

wrdls opened this issue Jul 4, 2024 · 0 comments

Comments

@wrdls
Copy link

wrdls commented Jul 4, 2024

Box b should not contain 'foo': {'bar': {}} after the get.

>>> b = Box.from_yaml('a:\n  b: c', default_box=True, default_box_create_on_get=False)
>>> b
Box({'a': {'b': 'c'}})
>>> b.foo.bar
Box({})
>>> b
Box({'a': {'b': 'c'}, 'foo': {'bar': {}}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant