Skip to content

Commit ca2f727

Browse files
author
John Chadwick
committed
Fix ValidationError ctor typing
1 parent 28bc0cf commit ca2f727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protovalidate/validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ class ValidationError(ValueError):
101101
An error raised when a message fails to validate.
102102
"""
103103

104-
_violations: list[Violation]
104+
_violations: list[_constraints.Violation]
105105

106-
def __init__(self, msg: str, violations: list[validate_pb2.Violations]):
106+
def __init__(self, msg: str, violations: list[_constraints.Violation]):
107107
super().__init__(msg)
108108
self._violations = violations
109109

0 commit comments

Comments
 (0)