Skip to content

Commit

Permalink
Add contains to enum
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Oct 20, 2023
1 parent 89499a3 commit cfad32a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pdf_token_type_labels/TaskMistakesType.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ class TaskMistakesType(Enum):
CORRECT = "CORRECT"
WRONG = "WRONG"
MISSING = "MISSING"

@staticmethod
def contains(key: str):
return key.upper() in [e.value for e in TaskMistakesType]

0 comments on commit cfad32a

Please sign in to comment.