Skip to content

Add migration support to BaseEnumeration#193

Merged
kroenlein merged 1 commit intomainfrom
feature/migrate-enum
Jul 11, 2023
Merged

Add migration support to BaseEnumeration#193
kroenlein merged 1 commit intomainfrom
feature/migrate-enum

Conversation

@kroenlein
Copy link
Copy Markdown
Collaborator

Add a enumerated value migration decorator to BaseEnumeration.

@kroenlein kroenlein requested a review from sfriedowitz July 11, 2023 16:06

def test_migrated():
"""Verify that migration functions as expected."""
@migrated_enum(old_value="UNO", new_value="ONE", deprecated_in="1.9.9", removed_in="2.0.0")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat

@kroenlein kroenlein merged commit 4f6fa5b into main Jul 11, 2023
@kroenlein kroenlein deleted the feature/migrate-enum branch July 11, 2023 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants