We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0207e82 commit e56fc0aCopy full SHA for e56fc0a
samtranslator/compat.py
@@ -1,8 +1,9 @@
1
try:
2
from pydantic import v1 as pydantic
3
+
4
# Starting Pydantic v1.10.17, pydantic import v1 will success,
5
# adding the following line to make Pydantic v1 should fall back to v1 import correctly.
- pydantic.error_wrappers
6
+ pydantic.error_wrappers.ValidationError # noqa
7
except ImportError:
8
# Unfortunately mypy cannot handle this try/expect pattern, and "type: ignore"
9
# is the simplest work-around. See: https://github.com/python/mypy/issues/1153
0 commit comments