Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix #2308: Keep suppressed imports in the suppressed list
  • Loading branch information
refi64 committed Mar 27, 2017
commit 161a2ec6746310b40f3224d5f4b0490fd13919e9
3 changes: 3 additions & 0 deletions mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,9 @@ def load_graph(sources: List[BuildSource], manager: BuildManager) -> Graph:
assert newst.id not in graph, newst.id
graph[newst.id] = newst
new.append(newst)
elif ignored:
manager.missing_modules.add(dep)

if dep in st.ancestors and dep in graph:
graph[dep].child_modules.add(st.id)
if dep in graph and dep in st.suppressed:
Expand Down