rbgirshick / yacs

YACS -- Yet Another Configuration System
Apache License 2.0
1.27k stars 89 forks source link

Accept all `pyyam`l types as valid types. #38

Closed Rizhiy closed 4 years ago

Rizhiy commented 4 years ago

I need to use dates in my config. When I put in my date in the yaml file:

DATE: 2020-01-01

it is automatically converted to datetime.date by yaml.safe_load. This then breaks the loading since date is not a valid type.

Currently, I have to explicitly state that the value is a string using !!str, this is cumbersome.

I suggest that yacs should support all types supported by pyyaml.

Rizhiy commented 4 years ago

Forgot I already opened similar issue, before will move this there.