You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New "Must not defer during final iteration" crash #14565
...
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/build.py", line 3403, in process_stale_scc
mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal_main.py", line 85, in semantic_analysis_for_scc
process_functions(graph, scc, patches)
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal_main.py", line 243, in process_functions
process_top_level_function(
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal_main.py", line 282, in process_top_level_function
deferred, incomplete, progress = semantic_analyze_target(
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal_main.py", line 339, in semantic_analyze_target
analyzer.refresh_partial(
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal.py", line 602, in refresh_partial
self.accept(node)
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal.py", line 6175, in accept
node.accept(self)
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/nodes.py", line 790, in accept
return visitor.visit_func_def(self)
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal.py", line 829, in visit_func_def
self.analyze_func_def(defn)
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal.py", line 864, in analyze_func_def
self.defer(defn)
File "/private/tmp/mypy_primer/bisect_mypy/mypy/mypy/semanal.py", line 5852, in defer
assert not self.final_iteration, "Must not defer during final iteration"
AssertionError: Must not defer during final iteration
Activity
hauntsaninja commentedon Jan 31, 2023
Okay, here's a minimised repro:
hauntsaninja commentedon Jan 31, 2023
And slightly simpler:
Fix crash on prefixed paramspec with deferral (#14569)
Fix crash on prefixed paramspec with deferral (python#14569)
[1.0 backport] Fix crash on prefixed paramspec with deferral (#14569) (…