[ty] Filter out private type aliases from stub files when offering autocomplete suggestions by AlexWaygood · Pull Request #19282 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
django-stubs (https://github.com/typeddjango/django-stubs)
- error[type-assertion-failure] tests/assert_type/contrib/admin/test_utils.py:74:1: Argument does not have asserted type
list[@Todo(Support fortyping.TypeAlias)]
- error[type-assertion-failure] tests/assert_type/contrib/admin/test_utils.py:74:1: Argument does not have asserted type
list[@Todo(unknown type subscript)]
- error[type-assertion-failure] tests/assert_type/contrib/admin/test_utils.py:75:1: Argument does not have asserted type
list[@Todo(Support fortyping.TypeAlias)]
- error[type-assertion-failure] tests/assert_type/contrib/admin/test_utils.py:75:1: Argument does not have asserted type
list[@Todo(unknown type subscript)]
- error[type-assertion-failure] tests/assert_type/contrib/admin/test_utils.py:76:1: Argument does not have asserted type
list[@Todo(Support fortyping.TypeAlias)]
- error[type-assertion-failure] tests/assert_type/contrib/admin/test_utils.py:76:1: Argument does not have asserted type
list[@Todo(unknown type subscript)]
- error[type-assertion-failure] tests/assert_type/contrib/admin/test_utils.py:77:1: Argument does not have asserted type
list[@Todo(Support fortyping.TypeAlias)]
- error[type-assertion-failure] tests/assert_type/contrib/admin/test_utils.py:77:1: Argument does not have asserted type
list[@Todo(unknown type subscript)]
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- error[invalid-argument-type] sklearn/calibration.py:1062:66: Argument to function
lenis incorrect: ExpectedSized, foundfloating[Any] | @Todo(Support fortyping.TypeAlias)
- error[invalid-argument-type] sklearn/calibration.py:1062:66: Argument to function
lenis incorrect: ExpectedSized, foundfloating[Any] | @Todo(unknown type subscript)
- error[invalid-argument-type] sklearn/calibration.py:1063:66: Argument to function
lenis incorrect: ExpectedSized, foundfloating[Any] | @Todo(Support fortyping.TypeAlias)
- error[invalid-argument-type] sklearn/calibration.py:1063:66: Argument to function
lenis incorrect: ExpectedSized, foundfloating[Any] | @Todo(unknown type subscript)
- error[invalid-argument-type] sklearn/calibration.py:1064:51: Argument to function
lenis incorrect: ExpectedSized, foundfloating[Any] | @Todo(Support fortyping.TypeAlias)
- error[invalid-argument-type] sklearn/calibration.py:1064:51: Argument to function
lenis incorrect: ExpectedSized, foundfloating[Any] | @Todo(unknown type subscript)
- error[invalid-argument-type] sklearn/datasets/_samples_generator.py:1146:60: Argument to function
__new__is incorrect: ExpectedIterable[Unknown], found(Unknown & ~Real) | (float & ~Real) | @Todo(Support fortyping.TypeAlias)
- error[invalid-argument-type] sklearn/datasets/_samples_generator.py:1146:60: Argument to function
__new__is incorrect: ExpectedIterable[Unknown], found(Unknown & ~Real) | (float & ~Real) | @Todo(unknown type subscript)
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:406:12: Attribute
sizeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:406:12: Attribute
sizeon type@Todo(unknown type subscript) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:409:12: Attribute
dtypeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:409:12: Attribute
dtypeon type@Todo(unknown type subscript) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:412:30: Attribute
dtypeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:412:30: Attribute
dtypeon type@Todo(unknown type subscript) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:415:12: Attribute
dtypeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:415:12: Attribute
dtypeon type@Todo(unknown type subscript) | Noneis possibly unbound
- error[not-iterable] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:416:42: Object of type
@Todo(Support fortyping.TypeAlias) | Nonemay not be iterable
- error[not-iterable] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:416:42: Object of type
@Todo(unknown type subscript) | Nonemay not be iterable
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:429:12: Attribute
dtypeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:429:12: Attribute
dtypeon type@Todo(unknown type subscript) | Noneis possibly unbound
- error[not-iterable] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:439:33: Object of type
@Todo(Support fortyping.TypeAlias) | Nonemay not be iterable
- error[not-iterable] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:439:33: Object of type
@Todo(unknown type subscript) | Nonemay not be iterable
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:448:14: Attribute
dtypeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:448:14: Attribute
dtypeon type@Todo(unknown type subscript) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:461:16: Attribute
shapeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:461:16: Attribute
shapeon type@Todo(unknown type subscript) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:465:24: Attribute
shapeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:465:24: Attribute
shapeon type@Todo(unknown type subscript) | Noneis possibly unbound
- error[invalid-argument-type] sklearn/linear_model/_logistic.py:452:27: Argument to function
lenis incorrect: ExpectedSized, found(Unknown & ~Integral) | Literal[10] | @Todo(Support fortyping.TypeAlias)
- error[invalid-argument-type] sklearn/linear_model/_logistic.py:452:27: Argument to function
lenis incorrect: ExpectedSized, found(Unknown & ~Integral) | Literal[10] | @Todo(unknown type subscript)
- error[invalid-argument-type] sklearn/linear_model/_logistic.py:453:27: Argument to function
__new__is incorrect: ExpectedIterable[Unknown], found(Unknown & ~Integral) | Literal[10] | @Todo(Support fortyping.TypeAlias)
- error[invalid-argument-type] sklearn/linear_model/_logistic.py:453:27: Argument to function
__new__is incorrect: ExpectedIterable[Unknown], found(Unknown & ~Integral) | Literal[10] | @Todo(unknown type subscript)
scipy (https://github.com/scipy/scipy)
- warning[possibly-unbound-attribute] scipy/_lib/_util.py:1143:33: Attribute
ndimon typeNone | @Todo(Support fortyping.TypeAlias)is possibly unbound
- warning[possibly-unbound-attribute] scipy/_lib/_util.py:1143:33: Attribute
ndimon typeNone | @Todo(unknown type subscript)is possibly unbound
- warning[possibly-unbound-attribute] scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/cobyla.py:557:51: Attribute
shapeon type@Todo(Support fortyping.TypeAlias) | Noneis possibly unbound
- warning[possibly-unbound-attribute] scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/cobyla.py:557:51: Attribute
shapeon type@Todo(unknown type subscript) | Noneis possibly unbound
- error[invalid-argument-type] scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/cobyla.py:557:70: Argument to function
lenis incorrect: ExpectedSized, found@Todo(Support fortyping.TypeAlias) | None
- error[invalid-argument-type] scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/cobyla.py:557:70: Argument to function
lenis incorrect: ExpectedSized, found@Todo(unknown type subscript) | None
- warning[possibly-unbound-attribute] scipy/integrate/_quadrature.py:538:13: Attribute
reshapeon typeNone | @Todo(Support fortyping.TypeAlias)is possibly unbound
- warning[possibly-unbound-attribute] scipy/integrate/_quadrature.py:538:13: Attribute
reshapeon typeNone | @Todo(unknown type subscript)is possibly unbound
- warning[possibly-unbound-attribute] scipy/optimize/_lsq/least_squares.py:158:8: Attribute
ndimon type(Unknown & ~None & ~Literal["jac"]) | float | @Todo(Support fortyping.TypeAlias)is possibly unbound
- warning[possibly-unbound-attribute] scipy/optimize/_lsq/least_squares.py:158:8: Attribute
ndimon type(Unknown & ~None & ~Literal["jac"]) | float | @Todo(unknown type subscript)is possibly unbound
- warning[possibly-unbound-attribute] scipy/optimize/_lsq/least_squares.py:161:8: Attribute
shapeon type(Unknown & ~None & ~Literal["jac"]) | float | @Todo(Support fortyping.TypeAlias)is possibly unbound
- warning[possibly-unbound-attribute] scipy/optimize/_lsq/least_squares.py:161:8: Attribute
shapeon type(Unknown & ~None & ~Literal["jac"]) | float | @Todo(unknown type subscript)is possibly unbound
- error[invalid-argument-type] scipy/special/tests/test_basic.py:3767:13: Argument to function
assert_is incorrect: Expectedstr | (() -> str), foundtuple[@Todo(Support fortyping.TypeAlias), @Todo(Support fortyping.TypeAlias), Any, Any]
- error[invalid-argument-type] scipy/special/tests/test_basic.py:3767:13: Argument to function
assert_is incorrect: Expectedstr | (() -> str), foundtuple[@Todo(unknown type subscript), @Todo(unknown type subscript), Any, Any]
- error[invalid-return-type] scipy/stats/_multicomp.py:426:12: Return type does not match returned value: expected
tuple[ndarray[Unknown, Unknown], int | float, ndarray[Unknown, Unknown], ndarray[Unknown, Unknown]], foundtuple[Any, Any, floating[Any], @Todo(Support fortyping.TypeAlias)]
- error[invalid-return-type] scipy/stats/_multicomp.py:426:12: Return type does not match returned value: expected
tuple[ndarray[Unknown, Unknown], int | float, ndarray[Unknown, Unknown], ndarray[Unknown, Unknown]], foundtuple[Any, Any, floating[Any], @Todo(unknown type subscript)]
- warning[possibly-unbound-attribute] scipy/stats/tests/test_multivariate.py:1605:24: Attribute
Ton typeNone | @Todo(Support fortyping.TypeAlias)is possibly unbound
- warning[possibly-unbound-attribute] scipy/stats/tests/test_multivariate.py:1605:24: Attribute
Ton typeNone | @Todo(unknown type subscript)is possibly unbound
- error[not-iterable] scipy/stats/tests/test_multivariate.py:1607:23: Object of type
None | @Todo(Support fortyping.TypeAlias)may not be iterable
- error[not-iterable] scipy/stats/tests/test_multivariate.py:1607:23: Object of type
None | @Todo(unknown type subscript)may not be iterable
No memory usage changes detected ✅