We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from enum import Enum from omegaconf import OmegaConf class Color(Enum): RED = 1 BLUE = 2 conf = OmegaConf.create({Color.RED: Color.BLUE}) print(OmegaConf.to_yaml(conf))
Outputs:
? !!python/object/apply:__main__.Color - 1 : BLUE
Expected output:
RED: BLUE
Note that the DictConfig value Color.BLUE is converted to a string, but the key Color.RED is not.
Color.BLUE
Color.RED
The text was updated successfully, but these errors were encountered:
Jasha10
Successfully merging a pull request may close this issue.
Outputs:
Expected output:
Note that the DictConfig value
Color.BLUE
is converted to a string, but the keyColor.RED
is not.The text was updated successfully, but these errors were encountered: