Skip to content

Breaking Change in v2.2.0: Python list does not provide a OneOf Template. #190

Description

@ajslater

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,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions