Switch to a more dynamic SCC processing logic by ilevkivskyi · Pull Request #20053 · python/mypy

Diff from mypy_primer, showing the effect of this PR on open source code:

scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/datasets/test_utils.pyi:6: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:6: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:9: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:9: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:9: error: Module has no attribute "ascent"  [attr-defined]
- tests/datasets/test_utils.pyi:10: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:10: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:10: error: Module has no attribute "ascent"  [attr-defined]
- tests/datasets/test_utils.pyi:11: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:11: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:11: error: Module has no attribute "ascent"  [attr-defined]
- tests/datasets/test_utils.pyi:14: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:14: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:14: error: Module has no attribute "electrocardiogram"  [attr-defined]
- tests/datasets/test_utils.pyi:15: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:15: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:15: error: Module has no attribute "electrocardiogram"  [attr-defined]
- tests/datasets/test_utils.pyi:16: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:16: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:16: error: Module has no attribute "electrocardiogram"  [attr-defined]
- tests/datasets/test_utils.pyi:19: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:19: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:19: error: Module has no attribute "face"  [attr-defined]
- tests/datasets/test_utils.pyi:20: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:20: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:20: error: Module has no attribute "face"  [attr-defined]
- tests/datasets/test_utils.pyi:21: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:21: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:21: error: Module has no attribute "face"  [attr-defined]
- tests/datasets/test_utils.pyi:24: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:24: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:24: error: Module has no attribute "ascent"  [attr-defined]
- tests/datasets/test_utils.pyi:24: error: Module has no attribute "electrocardiogram"  [attr-defined]
- tests/datasets/test_utils.pyi:24: error: Module has no attribute "face"  [attr-defined]
- tests/datasets/test_utils.pyi:26: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_utils.pyi:26: error: Module has no attribute "clear_cache"  [attr-defined]
- tests/datasets/test_utils.pyi:26: error: Module has no attribute "ascent"  [attr-defined]
- tests/datasets/test_utils.pyi:26: error: Module has no attribute "electrocardiogram"  [attr-defined]
- tests/datasets/test_utils.pyi:26: error: Module has no attribute "face"  [attr-defined]
- tests/datasets/test_fetchers.pyi:7: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[unsignedinteger[_8Bit]]]"  [assert-type]
- tests/datasets/test_fetchers.pyi:7: error: Module has no attribute "ascent"  [attr-defined]
- tests/datasets/test_fetchers.pyi:9: error: Expression is of type "Any", not "ndarray[tuple[int], dtype[float64]]"  [assert-type]
- tests/datasets/test_fetchers.pyi:9: error: Module has no attribute "electrocardiogram"  [attr-defined]
- tests/datasets/test_fetchers.pyi:11: error: Expression is of type "Any", not "ndarray[tuple[int, int, int], dtype[unsignedinteger[_8Bit]]]"  [assert-type]
- tests/datasets/test_fetchers.pyi:11: error: Module has no attribute "face"  [attr-defined]
- tests/datasets/test_fetchers.pyi:12: error: Expression is of type "Any", not "ndarray[tuple[int, int, int], dtype[unsignedinteger[_8Bit]]]"  [assert-type]
- tests/datasets/test_fetchers.pyi:12: error: Module has no attribute "face"  [attr-defined]
- tests/datasets/test_fetchers.pyi:13: error: Expression is of type "Any", not "ndarray[tuple[int, int], dtype[unsignedinteger[_8Bit]]]"  [assert-type]
- tests/datasets/test_fetchers.pyi:13: error: Module has no attribute "face"  [attr-defined]
- tests/datasets/test_download_all.pyi:6: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_download_all.pyi:6: error: Module has no attribute "download_all"  [attr-defined]
- tests/datasets/test_download_all.pyi:7: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_download_all.pyi:7: error: Module has no attribute "download_all"  [attr-defined]
- tests/datasets/test_download_all.pyi:8: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_download_all.pyi:8: error: Module has no attribute "download_all"  [attr-defined]
- tests/datasets/test_download_all.pyi:9: error: Expression is of type "Any", not "None"  [assert-type]
- tests/datasets/test_download_all.pyi:9: error: Module has no attribute "download_all"  [attr-defined]