Open luobroad opened 1 year ago
Thanks for the bug report, @luobroad.
Add a similar bug:
type Optional[Tuple[float, int]]
does not work as well, the second element in the tuple will still be float rather than int. Is this an implementation bug of omegaconf.ListConfig
?
I'm not sure if this is specific to ListConfig
-- it might be possible to find similar behavior with nested DictConfig
as well.
Describe the bug See the following reproducing code.
To Reproduce Here I have a .py file:
and a
reprod.yaml
fileExpected behavior It gives error message as following:
2
in the yaml to2.0
it works without error.list[float]
works with2
in the yaml without errorAdditional context