Skip to content

Commit 75c437a

Browse files
deepsource-autofix[bot]dbanty
authored andcommitted
Remove assert statement from non-test files
1 parent 44a74b2 commit 75c437a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openapi_python_client/openapi_parser/properties.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ def values_from_list(l: List[str]) -> Dict[str, str]:
295295
key = value.upper()
296296
else:
297297
key = f"VALUE_{i}"
298-
assert key not in output, f"Duplicate key {key} in Enum"
298+
if key in output:
299+
raise AssertionError(f"Duplicate key {key} in Enum")
299300
output[key] = value
300301

301302
return output

0 commit comments

Comments
 (0)