Lists for OneOf Syntactic Sugar Gone
After upgrading to Confuse 2.2.0 lists in templates are no longer transformed into OneOf operators.
Workarounds
- OneOf still works fine and can be substituted for the list shortcut.
- Reverting to Confuse 2.1.0 makes list shortcuts work again.
Reproduction
Seen in my somewhat large repo: https://github.com/ajslater/comicbox
The confuse MappingTemplate is in
https://github.com/ajslater/comicbox/blob/v2.1.0/comicbox/config/__init__.py
Resolution Suggestions
- Modify the docs and notify in release notes that the old syntactic sugar is gone.
- Or restore the functionality or if this was unintentional,
Lists for OneOf Syntactic Sugar Gone
After upgrading to Confuse 2.2.0 lists in templates are no longer transformed into OneOf operators.
Workarounds
Reproduction
Seen in my somewhat large repo: https://github.com/ajslater/comicbox
The confuse MappingTemplate is in
https://github.com/ajslater/comicbox/blob/v2.1.0/comicbox/config/__init__.py
Resolution Suggestions