Commit 729610a
authored
[ty] Fall back to ambiguous for large control flow graphs (#23399)
## Summary
This [giant
loop](https://github.com/Taiko2k/Tauon/blob/08bfd249f404817e58078a2cbce7a69d3f949f0c/src/tauon/t_modules/t_main.py#L44882-L49772)
is causing us to create (per Claude) over 3 million nodes in the TDD
graph. We now cap the analysis, which causes us to fall back to
"ambiguous" -- so we can still detect most diagnostics, but lose some
capabilities.
Closes astral-sh/ty#2846.1 parent 1425c18 commit 729610a
File tree
1 file changed
+19
-0
lines changed- crates/ty_python_semantic/src/semantic_index
1 file changed
+19
-0
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
317 | 323 | | |
318 | 324 | | |
319 | 325 | | |
| |||
588 | 594 | | |
589 | 595 | | |
590 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
591 | 602 | | |
592 | 603 | | |
593 | 604 | | |
| |||
621 | 632 | | |
622 | 633 | | |
623 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
624 | 639 | | |
625 | 640 | | |
626 | 641 | | |
| |||
687 | 702 | | |
688 | 703 | | |
689 | 704 | | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
690 | 709 | | |
691 | 710 | | |
692 | 711 | | |
| |||
0 commit comments