mirror of https://github.com/hwchase17/langchain
`poetry lock` the experimental package. (#9478)
parent
65e893b9cd
commit
d564ec944c
@ -1,4 +1,15 @@
|
||||
try:
|
||||
from pydantic.v1.dataclasses import * # noqa: F403
|
||||
except ImportError:
|
||||
import typing
|
||||
|
||||
# It's currently impossible to support mypy for both pydantic v1 and v2 at once:
|
||||
# https://github.com/pydantic/pydantic/issues/6022
|
||||
#
|
||||
# In the lint environment, pydantic is currently v1.
|
||||
# When we upgrade it to pydantic v2, we'll need to
|
||||
# replace this with `from pydantic.v1.dataclasses import *`.
|
||||
if typing.TYPE_CHECKING:
|
||||
from pydantic.dataclasses import * # noqa: F403
|
||||
else:
|
||||
try:
|
||||
from pydantic.v1.dataclasses import * # noqa: F403
|
||||
except ImportError:
|
||||
from pydantic.dataclasses import * # noqa: F403
|
||||
|
@ -1,4 +1,15 @@
|
||||
try:
|
||||
from pydantic.v1.main import * # noqa: F403
|
||||
except ImportError:
|
||||
import typing
|
||||
|
||||
# It's currently impossible to support mypy for both pydantic v1 and v2 at once:
|
||||
# https://github.com/pydantic/pydantic/issues/6022
|
||||
#
|
||||
# In the lint environment, pydantic is currently v1.
|
||||
# When we upgrade it to pydantic v2, we'll need
|
||||
# to replace this with `from pydantic.v1.main import *`.
|
||||
if typing.TYPE_CHECKING:
|
||||
from pydantic.main import * # noqa: F403
|
||||
else:
|
||||
try:
|
||||
from pydantic.v1.main import * # noqa: F403
|
||||
except ImportError:
|
||||
from pydantic.main import * # noqa: F403
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue