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 a65d297 commit f000e46Copy full SHA for f000e46
1 file changed
mypy/parse.py
@@ -8,7 +8,6 @@
8
from mypy import errorcodes as codes
9
from mypy.cache import read_int
10
from mypy.errors import Errors
11
-from mypy.nativeparse import State, deserialize_imports, read_statements
12
from mypy.nodes import FileRawData, MypyFile
13
from mypy.options import Options
14
@@ -93,6 +92,8 @@ def load_from_raw(
93
92
This essentially replicates parse() above but expects FileRawData instead of actually
94
parsing the source code in the file.
95
"""
+ from mypy.nativeparse import State, deserialize_imports, read_statements
96
+
97
# This part mimics the logic in native_parse().
98
data = ReadBuffer(raw_data.defs)
99
n = read_int(data)
0 commit comments