Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
BreathingFlesh committed Jul 11, 2024
1 parent a078948 commit 0738773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onegov/form/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def __call__(self, form: 'Form', field: 'Field') -> 'Form | None':
if isinstance(field, (UploadField, DateField, TimeField,

Check warning on line 368 in src/onegov/form/validators.py

View check run for this annotation

Codecov / codecov/patch

src/onegov/form/validators.py#L366-L368

Added lines #L366 - L368 were not covered by tests
DateTimeLocalField)):
error = field.gettext(self.invalid_field_type %

Check warning on line 370 in src/onegov/form/validators.py

View check run for this annotation

Codecov / codecov/patch

src/onegov/form/validators.py#L370

Added line #L370 was not covered by tests
{'label': field.label.text})
{'label': field.label.text})
errors = form['definition'].errors
if not isinstance(errors, list):
errors = form['definition'].process_errors
Expand Down

0 comments on commit 0738773

Please sign in to comment.