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 52f1547 commit d3c98caCopy full SHA for d3c98ca
1 file changed
mypy/build.py
@@ -3358,6 +3358,8 @@ def compute_dependencies(self) -> None:
3358
self.priorities = {} # id -> priority
3359
self.dep_line_map = {} # id -> line
3360
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.
3363
copied_imports = False
3364
if not self.tree.defs and self.tree.raw_data is not None:
3365
self.tree.defs = list(self.tree.imports)
0 commit comments