Skip to content

Commit

Permalink
add ruff ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
savarin committed Mar 28, 2024
1 parent 3c241c1 commit 939f74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modal/_utils/rand_pb_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _fill(msg, desc: Descriptor, rand: Random) -> None:
else:
if field.type == FieldDescriptor.TYPE_ENUM:
enum_values = [x.number for x in field.enum_type.values]
generator = lambda rand: rand.choice(enum_values)
generator = lambda rand: rand.choice(enum_values) # noqa: E731

else:
generator = _FIELD_RANDOM_GENERATOR[field.type]
Expand Down

0 comments on commit 939f74f

Please sign in to comment.