Skip to content

Commit f000e46

Browse files
committed
Move import to function
1 parent a65d297 commit f000e46

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mypy/parse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from mypy import errorcodes as codes
99
from mypy.cache import read_int
1010
from mypy.errors import Errors
11-
from mypy.nativeparse import State, deserialize_imports, read_statements
1211
from mypy.nodes import FileRawData, MypyFile
1312
from mypy.options import Options
1413

@@ -93,6 +92,8 @@ def load_from_raw(
9392
This essentially replicates parse() above but expects FileRawData instead of actually
9493
parsing the source code in the file.
9594
"""
95+
from mypy.nativeparse import State, deserialize_imports, read_statements
96+
9697
# This part mimics the logic in native_parse().
9798
data = ReadBuffer(raw_data.defs)
9899
n = read_int(data)

0 commit comments

Comments
 (0)