Skip to content

Commit fb88993

Browse files
authored
Fixed import (#115)
1 parent 0f15077 commit fb88993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

permit/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
from permit.utils.pydantic_version import PYDANTIC_VERSION
99

1010
if PYDANTIC_VERSION < (2, 0):
11-
from pydantic.v1 import ValidationError
11+
from pydantic import ValidationError
1212
else:
13-
from pydantic import ValidationError # type: ignore
13+
from pydantic.v1 import ValidationError # type: ignore[assignment]
1414

1515
from permit.api.models import ErrorDetails, HTTPValidationError
1616

0 commit comments

Comments
 (0)