Skip to content

Commit e56fc0a

Browse files
committed
format
1 parent 0207e82 commit e56fc0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samtranslator/compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
try:
22
from pydantic import v1 as pydantic
3+
34
# Starting Pydantic v1.10.17, pydantic import v1 will success,
45
# adding the following line to make Pydantic v1 should fall back to v1 import correctly.
5-
pydantic.error_wrappers
6+
pydantic.error_wrappers.ValidationError # noqa
67
except ImportError:
78
# Unfortunately mypy cannot handle this try/expect pattern, and "type: ignore"
89
# is the simplest work-around. See: https://github.com/python/mypy/issues/1153

0 commit comments

Comments
 (0)