Skip to content

Commit d65e0f9

Browse files
committed
Workaround circular import error in Mypy
Backport of: #13640
1 parent 47a6dbf commit d65e0f9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎pydantic/mypy.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from configparser import ConfigParser
88
from typing import Any, Callable
99

10+
# To avoid import error (https://github.com/python/mypy/issues/17726):
11+
import mypy.types # noqa: F401
1012
from mypy.errorcodes import ErrorCode
1113
from mypy.expandtype import expand_type, expand_type_by_instance
1214
from mypy.nodes import (

0 commit comments

Comments
 (0)