Make BatchProgressEnum inherit from str
This allows more readable code, as we can do if batch.batch_progress == BatchProgressEnum.VALIDATION_FAILED: instead of if batch.batch_progress == str(BatchProgressEnum.VALIDATION_FAILED): or if batch.batch_progress == BatchProgressEnum.VALIDATION_FAILED.value:
parent
57e32e0b
No related branches found
No related tags found
Please register or sign in to comment