Closed minipuding closed 1 year ago
Duplicate of #7
I found that it wasn't just a matter of not being able to be used at the top level said on #7, it was a matter of not being able to inherit at all, even at other levels.
data.yaml
batch_size: 8
workers: 4
main.yaml
data:
!include: data.yaml
batch_size: 4
is also wrong.
I hope the output is:
data:
batch_size: 4
workers: 4
No, sorry for that the extention can not do such a thing.
Such an including requires it to work like a template engine, the extention can not do that.
When I use a test case like: base.yaml:
derived.yaml:
test.py
I expect the output is
{'name': 'John Doe', 'age': 35, 'address': {'city': 'New York', 'state': 'CA'}}
but there is a error occured. The traceback is as follows: