-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
Description
#1514 expanded the number of enum values in validate_types.Severity from 3 to 5, and made validate_types.Severity inherit from IntEnum instead of Enum. However, some existing logic still treats validate_types.Severity as having only three values and take these values discretely, such as:
Lines 265 to 267 in a774355
| validation_errors = [ | |
| s for s in validation_statuses if s.severity == Severity.ERROR | |
| ] |
Code snippet above should be corrected to the following
validation_errors = [
s
for s in validation_statuses
if s.severity is not None and s.severity >= Severity.ERROR
]Make needed corrections in the logic handling values of validate_types.Severity.
Reactions are currently unavailable