Skip to content

Commit d3c98ca

Browse files
committed
Add a comment
1 parent 52f1547 commit d3c98ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mypy/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,6 +3358,8 @@ def compute_dependencies(self) -> None:
33583358
self.priorities = {} # id -> priority
33593359
self.dep_line_map = {} # id -> line
33603360
self.dep_hashes = {}
3361+
# We copy imports as defs to (partially) support some legacy mypy plugins,
3362+
# most notably old NumPy plugin that does some imports patching, see #21323.
33613363
copied_imports = False
33623364
if not self.tree.defs and self.tree.raw_data is not None:
33633365
self.tree.defs = list(self.tree.imports)

0 commit comments

Comments
 (0)