Skip to content

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Dec 4, 2025

Summary

closes astral-sh/ty#1737

Test Plan

@sharkdp sharkdp added ty Multi-file analysis & type inference ecosystem-analyzer labels Dec 4, 2025
@astral-sh-bot
Copy link

astral-sh-bot bot commented Dec 4, 2025

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

@astral-sh-bot
Copy link

astral-sh-bot bot commented Dec 4, 2025

mypy_primer results

Changes were detected when running on open source projects
beartype (https://github.com/beartype/beartype)
+ beartype/claw/_package/clawpkgtrie.py:66:29: warning[unsupported-base] Unsupported class base with type `<class 'dict[str, PackagesTrieBlacklist]'> | <class 'dict[str, Divergent]'>`
+ beartype/claw/_package/clawpkgtrie.py:247:29: warning[unsupported-base] Unsupported class base with type `<class 'dict[str, PackagesTrieWhitelist]'> | <class 'dict[str, Divergent]'>`
- Found 492 diagnostics
+ Found 494 diagnostics

arviz (https://github.com/arviz-devs/arviz)
+ arviz/plots/hdiplot.py:186:22: error[no-matching-overload] No overload of function `griddata` matches arguments
+ arviz/stats/diagnostics.py:870:46: error[non-subscriptable] Cannot subscript object of type `int` with no `__getitem__` method
+ arviz/stats/diagnostics.py:870:46: error[non-subscriptable] Cannot subscript object of type `float` with no `__getitem__` method
+ arviz/stats/diagnostics.py:871:45: error[non-subscriptable] Cannot subscript object of type `int` with no `__getitem__` method
+ arviz/stats/diagnostics.py:871:45: error[non-subscriptable] Cannot subscript object of type `float` with no `__getitem__` method
+ arviz/stats/diagnostics.py:925:23: error[no-matching-overload] No overload of function `circstd` matches arguments
- arviz/stats/ecdf_utils.py:83:12: error[invalid-return-type] Return type does not match returned value: expected `tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]]`, found `tuple[int | float | Unknown, int | float | Unknown]`
+ arviz/stats/ecdf_utils.py:83:12: error[invalid-return-type] Return type does not match returned value: expected `tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]]`, found `tuple[int | float | ndarray[tuple[Any, ...], dtype[float64]], int | float | ndarray[tuple[Any, ...], dtype[float64]]]`
+ arviz/tests/base_tests/test_utils.py:319:15: error[no-matching-overload] No overload of function `circmean` matches arguments
- Found 823 diagnostics
+ Found 830 diagnostics

scipy-stubs (https://github.com/scipy/scipy-stubs)
+ scipy-stubs/differentiate/_differentiate.pyi:99:20: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/differentiate/_differentiate.pyi:114:20: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/differentiate/_differentiate.pyi:129:20: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:28:55: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_ivp/ivp.pyi:28:88: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_ivp/ivp.pyi:73:36: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:73:67: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:95:21: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:108:21: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:122:21: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:136:21: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:150:21: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:163:21: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:177:21: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ivp/ivp.pyi:191:21: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_ode.pyi:46:37: error[invalid-type-arguments] Type `typing.TypeVar` is not assignable to upper bound `generic[Any]` of type variable `_SCT@Array1D`
+ scipy-stubs/integrate/_ode.pyi:47:39: error[invalid-type-arguments] Type `typing.TypeVar` is not assignable to upper bound `generic[Any]` of type variable `_SCT@Array1D`
+ scipy-stubs/integrate/_odepack_py.pyi:41:31: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:45:31: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:66:31: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:70:31: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:92:31: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:96:31: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:118:31: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:122:31: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:144:25: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:148:25: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:169:25: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:173:25: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:195:25: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:199:25: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:221:25: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/integrate/_odepack_py.pyi:225:25: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
- scipy-stubs/interpolate/_cubic.pyi:89:80: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
+ scipy-stubs/integrate/_rules/_base.pyi:22:36: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_rules/_base.pyi:25:36: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/integrate/_rules/_base.pyi:51:23: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/interpolate/_interpolate.pyi:86:18: error[invalid-type-arguments] Type `_CT_co@_PPolyBase` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/interpolate/_interpolate.pyi:191:18: error[invalid-type-arguments] Type `_CT_co@NdPPoly` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/interpolate/_ndbspline.pyi:72:25: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/interpolate/_ndbspline.pyi:77:88: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/interpolate/_rgi.pyi:40:29: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/interpolate/_rgi.pyi:53:29: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/interpolate/_rgi.pyi:66:29: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/linalg/_special_matrices.pyi:41:32: error[invalid-type-arguments] Type `signedinteger[_64Bit]` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:43:34: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:45:36: error[invalid-type-arguments] Type `complex128` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:115:51: error[invalid-type-arguments] Type `_SCT@circulant` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:117:44: error[invalid-type-arguments] Type `_SCT@circulant` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:135:51: error[invalid-type-arguments] Type `_SCT@companion` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:137:44: error[invalid-type-arguments] Type `_SCT@companion` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:155:100: error[invalid-type-arguments] Type `_SCT@convolution_matrix` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:157:93: error[invalid-type-arguments] Type `_SCT@convolution_matrix` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:175:49: error[invalid-type-arguments] Type `_SCT@fiedler` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:177:42: error[invalid-type-arguments] Type `_SCT@fiedler` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:195:59: error[invalid-type-arguments] Type `_SCT@fiedler_companion` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:197:52: error[invalid-type-arguments] Type `_SCT@fiedler_companion` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:221:70: error[invalid-type-arguments] Type `_SCT@leslie` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:223:64: error[invalid-type-arguments] Type `_SCT@leslie` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:225:57: error[invalid-type-arguments] Type `_SCT@leslie` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/linalg/_special_matrices.pyi:233:67: error[invalid-type-arguments] Type `_SCT@kron` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/ndimage/_filters.pyi:583:39: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:595:49: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:607:52: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:619:55: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:631:35: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:643:35: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:725:38: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:737:48: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:749:51: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:761:54: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:773:34: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/ndimage/_filters.pyi:785:34: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_differentiable_functions.pyi:60:27: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:66:28: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:72:28: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:91:25: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:94:26: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:95:26: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:105:25: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:108:26: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:109:26: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:154:25: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:156:24: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:157:26: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:168:25: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:170:24: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_differentiable_functions.pyi:171:26: error[invalid-type-arguments] Too many type arguments: expected 0, got 1
+ scipy-stubs/optimize/_lbfgsb_py.pyi:70:30: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:89:28: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:91:32: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:108:28: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:128:28: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:128:55: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:149:28: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:149:55: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:151:32: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:170:28: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:170:55: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:172:32: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:191:28: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:191:55: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/optimize/_lbfgsb_py.pyi:193:32: error[invalid-type-arguments] Too many type arguments: expected 1, got 2
+ scipy-stubs/stats/_distribution_infrastructure.pyi:445:19: error[invalid-type-arguments] Type `_ShapeT1@moment` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:449:19: error[invalid-type-arguments] Type `_ShapeT1@moment` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:458:19: error[invalid-type-arguments] Type `_ShapeT1@moment` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:467:19: error[invalid-type-arguments] Type `_ShapeT1@moment` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:476:19: error[invalid-type-arguments] Type `_ShapeT1@moment` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:482:113: error[invalid-type-arguments] Type `_ShapeT1@entropy` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:490:21: error[invalid-type-arguments] Type `_ShapeT1@logentropy` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:498:19: error[invalid-type-arguments] Type `_ShapeT1@pdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:508:108: error[invalid-type-arguments] Type `_ShapeT1@pdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:512:19: error[invalid-type-arguments] Type `_ShapeT1@pdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:532:19: error[invalid-type-arguments] Type `_ShapeT1@logpdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:542:111: error[invalid-type-arguments] Type `_ShapeT1@logpdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:546:19: error[invalid-type-arguments] Type `_ShapeT1@logpdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:566:19: error[invalid-type-arguments] Type `_ShapeT1@pmf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:576:108: error[invalid-type-arguments] Type `_ShapeT1@pmf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:580:19: error[invalid-type-arguments] Type `_ShapeT1@pmf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:600:19: error[invalid-type-arguments] Type `_ShapeT1@logpmf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:610:111: error[invalid-type-arguments] Type `_ShapeT1@logpmf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:614:19: error[invalid-type-arguments] Type `_ShapeT1@logpmf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:640:19: error[invalid-type-arguments] Type `_ShapeT1@cdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:664:19: error[invalid-type-arguments] Type `_ShapeT1@cdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:668:19: error[invalid-type-arguments] Type `_ShapeT1@cdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:677:19: error[invalid-type-arguments] Type `_ShapeT1@cdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:681:19: error[invalid-type-arguments] Type `_ShapeT1@cdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:730:19: error[invalid-type-arguments] Type `_ShapeT1@logcdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:762:19: error[invalid-type-arguments] Type `_ShapeT1@logcdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:766:19: error[invalid-type-arguments] Type `_ShapeT1@logcdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:775:19: error[invalid-type-arguments] Type `_ShapeT1@logcdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:779:19: error[invalid-type-arguments] Type `_ShapeT1@logcdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:834:19: error[invalid-type-arguments] Type `_ShapeT1@ccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:860:19: error[invalid-type-arguments] Type `_ShapeT1@ccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:864:19: error[invalid-type-arguments] Type `_ShapeT1@ccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:873:19: error[invalid-type-arguments] Type `_ShapeT1@ccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:877:19: error[invalid-type-arguments] Type `_ShapeT1@ccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:926:19: error[invalid-type-arguments] Type `_ShapeT1@logccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:958:19: error[invalid-type-arguments] Type `_ShapeT1@logccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:962:19: error[invalid-type-arguments] Type `_ShapeT1@logccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:971:19: error[invalid-type-arguments] Type `_ShapeT1@logccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:975:19: error[invalid-type-arguments] Type `_ShapeT1@logccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1025:19: error[invalid-type-arguments] Type `_ShapeT1@icdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1035:110: error[invalid-type-arguments] Type `_ShapeT1@icdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1039:19: error[invalid-type-arguments] Type `_ShapeT1@icdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1058:19: error[invalid-type-arguments] Type `_ShapeT1@ilogcdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1068:116: error[invalid-type-arguments] Type `_ShapeT1@ilogcdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1072:19: error[invalid-type-arguments] Type `_ShapeT1@ilogcdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1092:19: error[invalid-type-arguments] Type `_ShapeT1@iccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1102:111: error[invalid-type-arguments] Type `_ShapeT1@iccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1106:19: error[invalid-type-arguments] Type `_ShapeT1@iccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1125:19: error[invalid-type-arguments] Type `_ShapeT1@ilogccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1135:117: error[invalid-type-arguments] Type `_ShapeT1@ilogccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:1139:19: error[invalid-type-arguments] Type `_ShapeT1@ilogccdf` is not assignable to upper bound `generic[Any]` of type variable `_SCT@ArrayND`
- scipy-stubs/stats/_multivariate.pyi:427:89: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- scipy-stubs/stats/_multivariate.pyi:429:108: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- scipy-stubs/stats/_multivariate.pyi:431:88: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
+ scipy-stubs/stats/_multivariate.pyi:265:20: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:276:20: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:300:92: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:385:20: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:394:20: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:417:102: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:448:102: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:512:102: error[invalid-type-arguments] Type `_ScalarT_co@_group_rv_gen_mixin` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:525:92: error[invalid-type-arguments] Type `_ScalarT_co@_group_rv_frozen_mixin` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:546:112: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:559:102: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:817:20: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:841:20: error[invalid-type-arguments] Type `float64` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
+ scipy-stubs/stats/_multivariate.pyi:855:18: error[invalid-type-arguments] Type `signedinteger[_64Bit]` is not assignable to upper bound `tuple[int, ...]` of type variable `_NDT@Array`
- Found 95 diagnostics
+ Found 258 diagnostics

scikit-build-core (https://github.com/scikit-build/scikit-build-core)
+ src/scikit_build_core/_logging.py:153:13: warning[unsupported-base] Unsupported class base with type `<class 'Mapping[str, Style]'> | <class 'Mapping[str, Divergent]'>`
+ src/scikit_build_core/build/_pathutil.py:25:38: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | PathLike[str]`, found `DirEntry[Path]`
+ src/scikit_build_core/build/_pathutil.py:27:24: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | PathLike[str]`, found `DirEntry[Path]`
+ src/scikit_build_core/build/wheel.py:98:20: error[no-matching-overload] No overload of bound method `__init__` matches arguments
- Found 38 diagnostics
+ Found 42 diagnostics

altair (https://github.com/vega/altair)
+ altair/datasets/_reader.py:427:33: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Sequence[BaseImpl[LazyFrame[Any]]]`, found `Sequence[BaseImpl[IntoFrameT@reader]] & ~AlwaysFalsy`
- altair/utils/core.py:756:55: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- altair/utils/plugin_registry.py:110:44: error[invalid-parameter-default] Default value of type `def callable(obj: object, /) -> TypeIs[() -> object]` is not assignable to annotated parameter type `(object, /) -> TypeIs[object]`
+ altair/utils/schemapi.py:976:44: error[invalid-assignment] Object of type `dict[Unknown | str, Unknown | str]` is not assignable to `_TypeMap[Literal["object"]]`
+ altair/vegalite/v6/api.py:376:56: error[invalid-assignment] Object of type `dict[Unknown | str, Unknown | str]` is not assignable to `_TypeMap[Literal["object"]]`
+ altair/vegalite/v6/api.py:532:56: error[invalid-assignment] Object of type `dict[Unknown | str, Unknown | str]` is not assignable to `_TypeMap[Literal["object"]]`
+ altair/vegalite/v6/api.py:548:56: error[invalid-assignment] Object of type `dict[Unknown | str, Unknown | str]` is not assignable to `_TypeMap[Literal["object"]]`
- altair/vegalite/v6/schema/channels.py:22003:35: error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'str'>` and `<class 'Detail'>`
- altair/vegalite/v6/schema/channels.py:22519:22: error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'str'>` and `<class 'Detail'>`
- tests/vegalite/v6/test_api.py:1518:10: error[invalid-context-manager] Object of type `PluginEnabler[Unknown, ThemeConfig]` cannot be used with `with` because it does not correctly implement `__exit__`
- tests/vegalite/v6/test_api.py:1523:10: error[invalid-context-manager] Object of type `PluginEnabler[Unknown, ThemeConfig]` cannot be used with `with` because it does not correctly implement `__exit__`
- tests/vegalite/v6/test_api.py:1529:10: error[invalid-context-manager] Object of type `PluginEnabler[Unknown, ThemeConfig]` cannot be used with `with` because it does not correctly implement `__exit__`
+ tests/vegalite/v6/test_api.py:1518:10: error[invalid-context-manager] Object of type `PluginEnabler[Plugin[ThemeConfig], ThemeConfig]` cannot be used with `with` because it does not correctly implement `__exit__`
+ tests/vegalite/v6/test_api.py:1523:10: error[invalid-context-manager] Object of type `PluginEnabler[Plugin[ThemeConfig], ThemeConfig]` cannot be used with `with` because it does not correctly implement `__exit__`
+ tests/vegalite/v6/test_api.py:1529:10: error[invalid-context-manager] Object of type `PluginEnabler[Plugin[ThemeConfig], ThemeConfig]` cannot be used with `with` because it does not correctly implement `__exit__`
- tests/vegalite/v6/test_theme.py:48:14: error[invalid-context-manager] Object of type `PluginEnabler[Unknown, ThemeConfig]` cannot be used with `with` because it does not correctly implement `__exit__`
+ tests/vegalite/v6/test_theme.py:48:14: error[invalid-context-manager] Object of type `PluginEnabler[Plugin[ThemeConfig], ThemeConfig]` cannot be used with `with` because it does not correctly implement `__exit__`
- Found 1107 diagnostics
+ Found 1108 diagnostics

scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/cluster/_hdbscan/hdbscan.py:131:8: error[unsupported-operator] Operator `>` is not supported between objects of type `tuple[int, Unknown]` and `Literal[1]`
+ sklearn/cluster/_hdbscan/hdbscan.py:131:8: error[unsupported-operator] Operator `>` is not supported between objects of type `tuple[int, Array1D[signedinteger[_32Bit]]]` and `Literal[1]`
- sklearn/cluster/tests/test_k_means.py:1049:15: error[unresolved-attribute] Object of type `spmatrix[float64]` has no attribute `toarray`
- sklearn/cluster/tests/test_k_means.py:1058:9: error[unresolved-attribute] Object of type `spmatrix[float64]` has no attribute `data`
- sklearn/cluster/tests/test_k_means.py:1058:24: error[unresolved-attribute] Object of type `spmatrix[float64]` has no attribute `indices`
- sklearn/cluster/tests/test_k_means.py:1074:15: error[unresolved-attribute] Object of type `spmatrix[float64]` has no attribute `toarray`
+ sklearn/datasets/_rcv1.py:300:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(ix: CanIndex[int], /) -> Any, (ix: None, /) -> coo_array[Any, tuple[int, int]], (ix: tuple[CanIndex[int], CanIndex[int]], /) -> Any, (ixs: slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | ... omitted 3 union elements, /) -> csr_matrix[Any], (ixs: slice[Any, Any, Any] | EllipsisType | _spbase[bool[bool], tuple[int, int]] | ... omitted 5 union elements, /) -> _Self2T@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> _SelfMatrixT@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> coo_array[Any, tuple[int]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> matrix[tuple[int, int], dtype[Any]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> ndarray[tuple[int], dtype[Any]]]` cannot be called with key of type `tuple[slice[None, Literal[23149], None], slice[None, None, None]]` on object of type `csr_matrix[Any]`
+ sklearn/datasets/_rcv1.py:304:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(ix: CanIndex[int], /) -> Any, (ix: None, /) -> coo_array[Any, tuple[int, int]], (ix: tuple[CanIndex[int], CanIndex[int]], /) -> Any, (ixs: slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | ... omitted 3 union elements, /) -> csr_matrix[Any], (ixs: slice[Any, Any, Any] | EllipsisType | _spbase[bool[bool], tuple[int, int]] | ... omitted 5 union elements, /) -> _Self2T@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> _SelfMatrixT@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> coo_array[Any, tuple[int]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> matrix[tuple[int, int], dtype[Any]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> ndarray[tuple[int], dtype[Any]]]` cannot be called with key of type `tuple[slice[Literal[23149], None, None], slice[None, None, None]]` on object of type `csr_matrix[Any]`
+ sklearn/linear_model/_base.py:435:26: warning[possibly-missing-attribute] Attribute `toarray` may be missing on object of type `(Unknown & SparseABC) | (ndarray[tuple[int, int], dtype[Any]] & SparseABC) | csr_matrix[Any]`
+ sklearn/linear_model/_least_angle.py:1782:13: error[unsupported-operator] Operator `**=` is unsupported between objects of type `ndarray[tuple[Any, ...], dtype[float64 | complex128]]` and `Literal[2]`
- sklearn/linear_model/_omp.py:85:18: error[no-matching-overload] No overload of function `get_blas_funcs` matches arguments
- sklearn/linear_model/_omp.py:86:45: error[invalid-argument-type] Argument to function `get_lapack_funcs` is incorrect: Expected `Sequence[ArrayND]`, found `tuple[Unknown | ndarray[tuple[Any, ...], dtype[Unknown]]]`
- sklearn/linear_model/_omp.py:219:18: error[no-matching-overload] No overload of function `get_blas_funcs` matches arguments
- sklearn/linear_model/_omp.py:220:45: error[invalid-argument-type] Argument to function `get_lapack_funcs` is incorrect: Expected `Sequence[ArrayND]`, found `tuple[Unknown | ndarray[tuple[Any, ...], dtype[Unknown]]]`
- sklearn/linear_model/_stochastic_gradient.py:1686:37: warning[possibly-missing-attribute] Attribute `T` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | csr_matrix[Any]`
+ sklearn/linear_model/_stochastic_gradient.py:1686:37: warning[possibly-missing-attribute] Attribute `T` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ... omitted 3 union elements`
- sklearn/linear_model/_stochastic_gradient.py:1739:58: warning[possibly-missing-attribute] Attribute `dtype` may be missing on object of type `Unknown | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | None | csr_matrix[Any]`
+ sklearn/linear_model/_stochastic_gradient.py:1739:58: warning[possibly-missing-attribute] Attribute `dtype` may be missing on object of type `Unknown | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | ... omitted 3 union elements`
- sklearn/linear_model/_stochastic_gradient.py:2358:58: warning[possibly-missing-attribute] Attribute `dtype` may be missing on object of type `Unknown | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | None | csr_matrix[Any]`
+ sklearn/linear_model/_stochastic_gradient.py:2358:58: warning[possibly-missing-attribute] Attribute `dtype` may be missing on object of type `Unknown | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | ... omitted 3 union elements`
- sklearn/linear_model/_stochastic_gradient.py:2447:28: warning[possibly-missing-attribute] Attribute `shape` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | csr_matrix[Any]`
+ sklearn/linear_model/_stochastic_gradient.py:2447:28: warning[possibly-missing-attribute] Attribute `shape` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ... omitted 3 union elements`
- sklearn/linear_model/_stochastic_gradient.py:2450:32: warning[possibly-missing-attribute] Attribute `shape` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | csr_matrix[Any]`
+ sklearn/linear_model/_stochastic_gradient.py:2450:32: warning[possibly-missing-attribute] Attribute `shape` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ... omitted 3 union elements`
- sklearn/linear_model/_stochastic_gradient.py:2632:40: warning[possibly-missing-attribute] Attribute `T` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | csr_matrix[Any]`
+ sklearn/linear_model/_stochastic_gradient.py:2632:40: warning[possibly-missing-attribute] Attribute `T` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ... omitted 3 union elements`
+ sklearn/linear_model/tests/test_base.py:156:16: warning[possibly-missing-attribute] Attribute `ravel` may be missing on object of type `_spbase[Any, tuple[Any, ...]] | ndarray[tuple[Any, ...], dtype[Any]]`
+ sklearn/linear_model/tests/test_base.py:159:48: warning[possibly-missing-attribute] Attribute `ravel` may be missing on object of type `_spbase[Any, tuple[Any, ...]] | ndarray[tuple[Any, ...], dtype[Any]]`
- sklearn/linear_model/tests/test_huber.py:171:44: error[invalid-argument-type] Argument to function `assert_array_almost_equal` is incorrect: Expected `_SupportsArray[dtype[bool[bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[bool[bool] | number[Any, int | float | complex]]]] | int | ... omitted 5 union elements`, found `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | csr_matrix[Any]`
+ sklearn/linear_model/tests/test_huber.py:171:44: error[invalid-argument-type] Argument to function `assert_array_almost_equal` is incorrect: Expected `_SupportsArray[dtype[bool[bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[bool[bool] | number[Any, int | float | complex]]]] | int | ... omitted 5 union elements`, found `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ... omitted 3 union elements`
- sklearn/linear_model/tests/test_passive_aggressive.py:291:29: warning[possibly-missing-attribute] Attribute `ravel` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[int], dtype[Unknown]] | csr_matrix[Any]`
+ sklearn/linear_model/tests/test_passive_aggressive.py:291:29: warning[possibly-missing-attribute] Attribute `ravel` may be missing on object of type `Unknown | None | ndarray[tuple[Any, ...], dtype[Unknown]] | ... omitted 3 union elements`
+ sklearn/manifold/tests/test_spectral_embedding.py:406:24: error[no-matching-overload] No overload of function `eigh` matches arguments
+ sklearn/metrics/tests/test_ranking.py:702:35: error[invalid-argument-type] Argument to bound method `rvs` is incorrect: Expected `ToJustIntND`, found `Literal[1]`
+ sklearn/model_selection/_search.py:1165:44: error[invalid-argument-type] Argument to function `rankdata` is incorrect: Expected `ToFloatND`, found `Array`
+ sklearn/multioutput.py:832:33: error[index-out-of-bounds] Index 1 is out of bounds for tuple `tuple[int]` with length 1
+ sklearn/multioutput.py:838:27: error[index-out-of-bounds] Index 1 is out of bounds for tuple `tuple[int]` with length 1
+ sklearn/preprocessing/_label.py:686:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(ix: CanIndex[int], /) -> Any, (ix: None, /) -> coo_array[Any, tuple[int, int]], (ix: tuple[CanIndex[int], CanIndex[int]], /) -> Any, (ixs: slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | ... omitted 3 union elements, /) -> csr_matrix[Any], (ixs: slice[Any, Any, Any] | EllipsisType | _spbase[bool[bool], tuple[int, int]] | ... omitted 5 union elements, /) -> _Self2T@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> _SelfMatrixT@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> coo_array[Any, tuple[int]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> matrix[tuple[int, int], dtype[Any]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> ndarray[tuple[int], dtype[Any]]]` cannot be called with key of type `tuple[slice[None, None, None], list[Unknown | int]]` on object of type `csr_matrix[Any]`
+ sklearn/preprocessing/_polynomial.py:1078:25: error[invalid-argument-type] Method `__getitem__` of type `Overload[(ix: CanIndex[int], /) -> float64, (ix: None, /) -> coo_array[float64, tuple[int, int]], (ix: tuple[CanIndex[int], CanIndex[int]], /) -> float64, (ixs: slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | ... omitted 3 union elements, /) -> lil_array[float64], (ixs: slice[Any, Any, Any] | EllipsisType | _spbase[bool[bool], tuple[int, int]] | ... omitted 5 union elements, /) -> _Self2T@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> _SelfMatrixT@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> coo_array[float64, tuple[int]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> matrix[tuple[int, int], dtype[float64]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> ndarray[tuple[int], dtype[float64]]]` cannot be called with key of type `tuple[slice[None, None, None], slice[Any, Any, Any]]` on object of type `lil_array[float64]`
+ sklearn/preprocessing/_polynomial.py:1078:51: error[invalid-argument-type] Method `__getitem__` of type `Overload[(ix: CanIndex[int], /) -> float64, (ix: None, /) -> coo_array[float64, tuple[int, int]], (ix: tuple[CanIndex[int], CanIndex[int]], /) -> float64, (ixs: slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | ... omitted 3 union elements, /) -> lil_array[float64], (ixs: slice[Any, Any, Any] | EllipsisType | _spbase[bool[bool], tuple[int, int]] | ... omitted 5 union elements, /) -> _Self2T@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> _SelfMatrixT@__getitem__, (ixs: CanIndex[int] | tuple[CanIndex[int]] | tuple[CanIndex[int], slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]] | tuple[slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], CanIndex[int]], /) -> coo_array[float64, tuple[int]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> matrix[tuple[int, int], dtype[float64]], (ixs: tuple[_CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]], _CanArrayND[integer[Any] | bool[bool]] | Sequence[int | integer[Any] | bool[bool]]], /) -> ndarray[tuple[int], dtype[float64]]]` cannot be called with key of type `tuple[slice[None, None, None], slice[Any, Any, Any]]` on object of type `lil_array[float64]`
+ sklearn/preprocessing/_polynomial.py:1079:38: error[invalid-argument-type] Method `__getitem__` of type `Overload[(ix: CanIndex[int], /) -> float64, (ix: None, /) -> coo_array[float64, tuple[int, int]], (ix: tuple[CanIndex[int], CanIndex[int]], /) -> float64, (ixs: slice[Any, Any, Any] | EllipsisType | _CanArrayND[integer[Any] | bool[bool]] | ... omitted 3 union elements, /) -> 

... (truncated 34 lines) ...

No memory usage changes detected ✅

@astral-sh-bot
Copy link

astral-sh-bot bot commented Dec 4, 2025

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-type-arguments 167 0 0
invalid-argument-type 12 2 1
possibly-missing-attribute 3 1 10
no-matching-overload 4 8 0
invalid-assignment 5 0 0
unsupported-operator 2 2 1
unused-ignore-comment 0 5 0
invalid-context-manager 0 0 4
non-subscriptable 4 0 0
unresolved-attribute 0 4 0
index-out-of-bounds 2 0 0
unsupported-base 0 2 0
invalid-parameter-default 0 1 0
invalid-return-type 0 0 1
Total 199 25 17

Full report with detailed diff (timing results)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecosystem-analyzer ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support generic "manual" PEP 695 type aliases

2 participants