Skip to content

Commit 3d76cef

Browse files
Run ruff check --fix src/
1 parent 0570a62 commit 3d76cef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

protovalidate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
validate = _validator.validate
2424
collect_violations = _validator.collect_violations
2525

26-
__all__ = ["Validator", "CompilationError", "ValidationError", "Violations", "validate", "collect_violations"]
26+
__all__ = ["CompilationError", "ValidationError", "Validator", "Violations", "collect_violations", "validate"]

protovalidate/internal/constraints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ def __init__(
347347
self._ignore_empty = (
348348
field_level.ignore_empty
349349
or field_level.ignore in (validate_pb2.IGNORE_IF_UNPOPULATED, validate_pb2.IGNORE_IF_DEFAULT_VALUE)
350-
or field.has_presence # type: ignore[attr-defined]
351-
and not for_items
350+
or (field.has_presence # type: ignore[attr-defined]
351+
and not for_items)
352352
)
353353
self._ignore_default = field.has_presence and field_level.ignore == validate_pb2.IGNORE_IF_DEFAULT_VALUE # type: ignore[attr-defined]
354354
self._required = field_level.required

0 commit comments

Comments
 (0)