You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a parameter is tagged with a yaml tag and contain a string that can be interpreted as an other type, this string is automatically converted to the other type:
E:g:
config:
param: !tag "True"param2: !tag "2.3"
It is converted to {"config": {"param@tag": True, "param2@tag": 2.3}}
To solve this, use cliconfig tags:
config:
param@tag: "True"param2@tag: "2.3"
It is converted to {"config": {"param@tag": "True", "param2@tag": "2.3"}}
The text was updated successfully, but these errors were encountered:
valentingol
changed the title
[bug] yaml tagged string convert to other type
[bug] yaml tagged string automatically converted to other type
May 15, 2023
valentingol
changed the title
[bug] yaml tagged string automatically converted to other type
[bug] string with yaml tag is automatically converted to other type if possible
May 15, 2023
When a parameter is tagged with a yaml tag and contain a string that can be interpreted as an other type, this string is automatically converted to the other type:
E:g:
It is converted to
{"config": {"param@tag": True, "param2@tag": 2.3}}
To solve this, use cliconfig tags:
It is converted to
{"config": {"param@tag": "True", "param2@tag": "2.3"}}
Source of the behavior: https://github.com/valentingol/cliconfig/blob/main/cliconfig/yaml_tags/_yaml_tags.py, line 53
The text was updated successfully, but these errors were encountered: