Skip to content

Commit 19249f9

Browse files
committed
Remove old hack for forcing staleness
1 parent 5234f9b commit 19249f9

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

mypy/build.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,25 +1602,6 @@ def process_graph(graph: Graph, manager: BuildManager) -> None:
16021602
else:
16031603
process_stale_scc(graph, scc)
16041604

1605-
# TODO: This is a workaround to get around the "chaining imports" problem
1606-
# with the interface checks.
1607-
#
1608-
# That is, if we have a file named `module_a.py` which does:
1609-
#
1610-
# import module_b
1611-
# module_b.module_c.foo(3)
1612-
#
1613-
# ...and if the type signature of `module_c.foo(...)` were to change,
1614-
# module_a_ would not be rechecked since the interface of `module_b`
1615-
# would not be considered changed.
1616-
#
1617-
# As a workaround, this check will force a module's interface to be
1618-
# considered stale if anything it imports has a stale interface,
1619-
# which ensures these changes are caught and propagated.
1620-
if len(stale_deps) > 0:
1621-
for id in scc:
1622-
graph[id].mark_interface_stale()
1623-
16241605

16251606
def order_ascc(graph: Graph, ascc: AbstractSet[str], pri_max: int = PRI_ALL) -> List[str]:
16261607
"""Come up with the ideal processing order within an SCC.

0 commit comments

Comments
 (0)