Traceback (most recent call last):
File "/home/anders/python/mypy/.direnv/python-3.9.5/bin/mypy", line 33, in <module>
sys.exit(load_entry_point('mypy', 'console_scripts', 'mypy')())
File "/home/anders/python/mypy/mypy/__main__.py", line 11, in console_entry
main(None, sys.stdout, sys.stderr)
File "/home/anders/python/mypy/mypy/main.py", line 87, in main
res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
File "/home/anders/python/mypy/mypy/main.py", line 165, in run_build
res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
File "/home/anders/python/mypy/mypy/build.py", line 179, in build
result = _build(
File "/home/anders/python/mypy/mypy/build.py", line 254, in _build
graph = dispatch(sources, manager, stdout)
File "/home/anders/python/mypy/mypy/build.py", line 2698, in dispatch
process_graph(graph, manager)
File "/home/anders/python/mypy/mypy/build.py", line 3015, in process_graph
process_fresh_modules(graph, prev_scc, manager)
File "/home/anders/python/mypy/mypy/build.py", line 3093, in process_fresh_modules
graph[id].fix_cross_refs()
File "/home/anders/python/mypy/mypy/build.py", line 1992, in fix_cross_refs
fixup_module(self.tree, self.manager.modules,
File "/home/anders/python/mypy/mypy/fixup.py", line 26, in fixup_module
node_fixer.visit_symbol_table(tree.names, tree.fullname)
File "/home/anders/python/mypy/mypy/fixup.py", line 77, in visit_symbol_table
stnode = lookup_qualified_stnode(self.modules, cross_ref,
File "/home/anders/python/mypy/mypy/fixup.py", line 306, in lookup_qualified_stnode
return lookup_fully_qualified(name, modules, raise_on_missing=not allow_missing)
File "/home/anders/python/mypy/mypy/lookup.py", line 47, in lookup_fully_qualified
assert key in names, "Cannot find component %r for %r" % (key, name)
AssertionError: Cannot find component 'NT@4' for 'breaking.C.NT@4'
Crash Report
This is a variant of #7281 that still crashes incremental checking on 0.910 and
master(9f409c3), both of which include #10432, which was supposed to fix #7281.The difference in this case is that the local
NamedTupleis defined inside a class method rather than a global function.To Reproduce
Traceback
Your Environment
mypy.ini(and other config files): none