[ty] Add new diagnostic for invalid dataclass field orders by PrettyWood · Pull Request #19825 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
attrs (https://github.com/python-attrs/attrs)
- tests/test_hooks.py:152:13: error[dataclass-field-order] Required field
ycannot be defined after fields with default values - tests/test_make.py:829:13: error[dataclass-field-order] Required field
val4cannot be defined after fields with default values
- Found 631 diagnostics
- Found 633 diagnostics
packaging (https://github.com/pypa/packaging)
- src/packaging/pylock.py:283:21: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/packaging/pylock.py:351:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/packaging/pylock.py:393:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/packaging/pylock.py:434:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/packaging/pylock.py:572:22: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/packaging/pylock.py:573:34: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - Found 24 diagnostics
- Found 18 diagnostics
pip (https://github.com/pypa/pip)
- src/pip/_vendor/packaging/pylock.py:278:21: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/pip/_vendor/packaging/pylock.py:346:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/pip/_vendor/packaging/pylock.py:388:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/pip/_vendor/packaging/pylock.py:429:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/pip/_vendor/packaging/pylock.py:567:22: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - src/pip/_vendor/packaging/pylock.py:568:34: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - Found 634 diagnostics
- Found 628 diagnostics
Expression (https://github.com/cognitedata/Expression)
- tests/test_compose.py:21:16: error[invalid-assignment] Object of type
(Never, /) -> Neveris not assignable to(int, /) -> int
- Found 200 diagnostics
- Found 201 diagnostics
pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type
dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | ((dict[str, Divergent], type[Any], /) -> None)on TypedDictCoreMetadata: value of typedict[object, object]
- pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type
dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | ((dict[str, int | float | str | ... omitted 3 union elements], type[Any], /) -> None)on TypedDictCoreMetadata: value of typedict[object, object]
- pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None, foundTop[dict[Unknown, Unknown]] | (((dict[str, Divergent], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None
- pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None, foundTop[dict[Unknown, Unknown]] | (((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None
setuptools (https://github.com/pypa/setuptools)
- setuptools/_distutils/command/install.py:719:42: error[invalid-argument-type] Argument to function
__new__is incorrect: ExpectedIterable[Never], foundmap[str] - setuptools/_vendor/packaging/pylock.py:278:21: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - setuptools/_vendor/packaging/pylock.py:346:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - setuptools/_vendor/packaging/pylock.py:388:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - setuptools/_vendor/packaging/pylock.py:429:32: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - setuptools/_vendor/packaging/pylock.py:567:22: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - setuptools/_vendor/packaging/pylock.py:568:34: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - Found 1145 diagnostics
- Found 1138 diagnostics
prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/deployments/runner.py:1017:70: warning[possibly-missing-attribute] Attribute
__name__may be missing on object of typeUnknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))
- src/prefect/deployments/runner.py:1017:70: warning[possibly-missing-attribute] Attribute
__name__may be missing on object of typeUnknown | ((...) -> Any) - src/prefect/flow_engine.py:997:32: error[invalid-await]
Unknown | R@FlowRunEngine | Coroutine[Any, Any, R@FlowRunEngine]is not awaitable - src/prefect/flow_engine.py:1596:24: error[invalid-await]
Unknown | R@AsyncFlowRunEngine | Coroutine[Any, Any, R@AsyncFlowRunEngine]is not awaitable - src/prefect/flow_engine.py:1677:43: error[invalid-argument-type] Argument to function
nextis incorrect: ExpectedSupportsNext[Unknown], foundUnknown | R@run_generator_flow_sync - src/prefect/flow_engine.py:1685:21: warning[possibly-missing-attribute] Attribute
throwmay be missing on object of typeUnknown | R@run_generator_flow_sync - src/prefect/flow_engine.py:1719:44: warning[possibly-missing-attribute] Attribute
__anext__may be missing on object of typeUnknown | R@run_generator_flow_async - src/prefect/flow_engine.py:1726:25: warning[possibly-missing-attribute] Attribute
throwmay be missing on object of typeUnknown | R@run_generator_flow_async
- src/prefect/flows.py:285:34: error[unresolved-attribute] Object of type
((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)has no attribute__name__
- src/prefect/flows.py:285:34: error[unresolved-attribute] Object of type
(**P@Flow) -> R@Flowhas no attribute__name__
- src/prefect/flows.py:403:68: error[unresolved-attribute] Object of type
((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)has no attribute__name__
- src/prefect/flows.py:403:68: error[unresolved-attribute] Object of type
(**P@Flow) -> R@Flowhas no attribute__name__
- src/prefect/flows.py:1885:53: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective
- src/prefect/flows.py:1945:21: error[no-matching-overload] No overload of function
run_coro_as_syncmatches arguments
- src/prefect/input/run_input.py:672:20: error[invalid-return-type] Return type does not match returned value: expected
T@GetAutomaticInputHandler | AutomaticRunInput[T@GetAutomaticInputHandler], foundUnknown | Coroutine[Any, Any, Unknown]
- src/prefect/input/run_input.py:672:20: error[invalid-return-type] Return type does not match returned value: expected
T@GetAutomaticInputHandler | AutomaticRunInput[T@GetAutomaticInputHandler], foundT@GetAutomaticInputHandler | AutomaticRunInput[T@GetAutomaticInputHandler] | Coroutine[Any, Any, T@GetAutomaticInputHandler | AutomaticRunInput[T@GetAutomaticInputHandler]]
- Found 5455 diagnostics
- Found 5461 diagnostics
sympy (https://github.com/sympy/sympy)
- sympy/algebras/quaternion.py:132:22: error[invalid-assignment] Object of type
Basicis not assignable toExpr | int | float | complex
- sympy/algebras/quaternion.py:132:22: error[invalid-assignment] Object of type
Basic | int | float | complex | Anyis not assignable toExpr | int | float | complex
- sympy/algebras/quaternion.py:132:22: error[invalid-assignment] Object of type
Basicis not assignable toExpr | int | float | complex
- sympy/algebras/quaternion.py:132:22: error[invalid-assignment] Object of type
Basic | int | float | complex | Anyis not assignable toExpr | int | float | complex
- sympy/algebras/quaternion.py:132:22: error[invalid-assignment] Object of type
Basicis not assignable toExpr | int | float | complex
- sympy/algebras/quaternion.py:132:22: error[invalid-assignment] Object of type
Basic | int | float | complex | Anyis not assignable toExpr | int | float | complex
- sympy/algebras/quaternion.py:132:22: error[invalid-assignment] Object of type
Basicis not assignable toExpr | int | float | complex
- sympy/algebras/quaternion.py:132:22: error[invalid-assignment] Object of type
Basic | int | float | complex | Anyis not assignable toExpr | int | float | complex - sympy/algebras/tests/test_quaternion.py:75:10: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/algebras/tests/test_quaternion.py:75:10: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method
- sympy/algebras/tests/test_quaternion.py:422:33: error[unsupported-operator] Operator
-is not supported between two objects of typeMutableDenseMatrix - sympy/codegen/tests/test_matrix_nodes.py:27:21: error[unsupported-operator] Operator
-is not supported between two objects of typeMutableDenseMatrix - sympy/functions/combinatorial/factorials.py:967:13: error[unsupported-operator] Operator
-is not supported between two objects of typeBasic
- sympy/functions/combinatorial/factorials.py:967:13: error[unsupported-operator] Operator
-is not supported between two objects of typeBasic | int | float | complex | Any - sympy/functions/combinatorial/factorials.py:968:29: warning[possibly-missing-attribute] Attribute
is_nonnegativemay be missing on object of typeBasic | int | float | complex | Any - sympy/functions/combinatorial/factorials.py:968:47: warning[possibly-missing-attribute] Attribute
is_integermay be missing on object of typeBasic | int | float | complex | Any - sympy/functions/combinatorial/factorials.py:969:12: warning[possibly-missing-attribute] Attribute
is_zeromay be missing on object of typeBasic | int | float | complex | Any
- sympy/functions/combinatorial/factorials.py:972:13: error[unsupported-operator] Operator
-is not supported between objects of typeBasicandLiteral[1]
- sympy/functions/combinatorial/factorials.py:972:13: error[unsupported-operator] Operator
-is not supported between objects of typeBasic | int | float | complex | AnyandLiteral[1] - sympy/functions/combinatorial/factorials.py:975:12: warning[possibly-missing-attribute] Attribute
is_integermay be missing on object of typeBasic | int | float | complex | Any - sympy/functions/combinatorial/factorials.py:976:16: warning[possibly-missing-attribute] Attribute
is_negativemay be missing on object of typeBasic | int | float | complex | Any - sympy/functions/combinatorial/factorials.py:978:18: warning[possibly-missing-attribute] Attribute
is_numbermay be missing on object of typeBasic | int | float | complex | Any - sympy/functions/combinatorial/factorials.py:984:14: warning[possibly-missing-attribute] Attribute
is_numbermay be missing on object of typeBasic | int | float | complex | Any
- sympy/functions/combinatorial/factorials.py:986:26: error[unsupported-operator] Operator
+is not supported between objects of typeBasicandLiteral[1]
- sympy/functions/combinatorial/factorials.py:986:26: error[unsupported-operator] Operator
+is not supported between objects of typeBasic | int | float | complex | AnyandLiteral[1]
- sympy/functions/combinatorial/factorials.py:986:40: error[unsupported-operator] Operator
+is not supported between objects of typeBasicandLiteral[1]
- sympy/functions/combinatorial/factorials.py:986:40: error[unsupported-operator] Operator
+is not supported between objects of typeBasic | int | float | complex | AnyandLiteral[1]
- sympy/functions/combinatorial/factorials.py:986:53: error[unsupported-operator] Operator
-is not supported between two objects of typeBasic
- sympy/functions/combinatorial/factorials.py:986:53: error[unsupported-operator] Operator
-is not supported between two objects of typeBasic | int | float | complex | Any
- sympy/geometry/point.py:1295:25: warning[possibly-missing-attribute] Attribute
tolistmay be missing on object of typeMatrixBase | Expr
- sympy/geometry/point.py:1295:25: warning[possibly-missing-attribute] Attribute
tolistmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr - sympy/geometry/polygon.py:1489:12: warning[possibly-missing-attribute] Attribute
is_Numbermay be missing on object of typeBasic | int | float | complex | Any
- sympy/geometry/polygon.py:1490:20: error[invalid-argument-type] Argument to function
as_intis incorrect: ExpectedSupportsIndex, foundBasic
- sympy/geometry/polygon.py:1490:20: error[invalid-argument-type] Argument to function
as_intis incorrect: ExpectedSupportsIndex, foundBasic | int | float | complex | Any
- sympy/geometry/polygon.py:1491:16: error[unsupported-operator] Operator
<is not supported between objects of typeBasicandLiteral[3]
- sympy/geometry/polygon.py:1491:16: error[unsupported-operator] Operator
<is not supported between objects of typeBasic | int | float | complex | AnyandLiteral[3] - sympy/geometry/polygon.py:1498:40: warning[possibly-missing-attribute] Attribute
is_numbermay be missing on object of typeBasic | int | float | complex | Any
- sympy/integrals/tests/test_heurisch.py:390:26: error[not-subscriptable] Cannot subscript object of type
Exprwith no__getitem__method
- sympy/integrals/tests/test_heurisch.py:389:17: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/decompositions.py:1321:16: warning[possibly-missing-attribute] Attribute
diagonalizemay be missing on object of typeMatrixBase | Expr
- sympy/matrices/decompositions.py:1321:16: warning[possibly-missing-attribute] Attribute
diagonalizemay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr - sympy/matrices/decompositions.py:1334:13: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMatrixBase
- sympy/matrices/decompositions.py:1336:16: warning[possibly-missing-attribute] Attribute
diagonalizemay be missing on object of typeMatrixBase | Expr
- sympy/matrices/decompositions.py:1336:16: warning[possibly-missing-attribute] Attribute
diagonalizemay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr - sympy/matrices/decompositions.py:1348:13: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMatrixBase
- sympy/matrices/decompositions.py:1350:12: error[invalid-return-type] Return type does not match returned value: expected
tuple[Tmat@_singular_value_decomposition, Tmat@_singular_value_decomposition, Tmat@_singular_value_decomposition], foundtuple[MatrixBase | Expr | Unknown, MatrixBase, MatrixBase | Expr | Unknown]
- sympy/matrices/decompositions.py:1350:12: error[invalid-return-type] Return type does not match returned value: expected
tuple[Tmat@_singular_value_decomposition, Tmat@_singular_value_decomposition, Tmat@_singular_value_decomposition], foundtuple[Unknown | MatrixBase, MatrixBase, MatrixBase | Unknown]
- sympy/matrices/eigen.py:1202:37: error[unresolved-attribute] Object of type
T2'return@call_highest_priority | T1'return@call_highest_priorityhas no attributepow - sympy/matrices/expressions/tests/test_blockmatrix.py:235:13: error[unsupported-operator] Operator
+is not supported between two objects of typeMutableDenseMatrix - sympy/matrices/expressions/tests/test_blockmatrix.py:235:33: error[unsupported-operator] Operator
+is not supported between two objects of typeMutableDenseMatrix - sympy/matrices/expressions/tests/test_blockmatrix.py:235:53: error[unsupported-operator] Operator
+is not supported between two objects of typeMutableDenseMatrix - sympy/matrices/expressions/tests/test_blockmatrix.py:459:12: error[unsupported-operator] Operator
-is not supported between two objects of typeMutableDenseMatrix - sympy/matrices/expressions/tests/test_derivatives.py:551:26: error[unsupported-operator] Operator
+is not supported between two objects of typeMatrixBase | Expr
- sympy/matrices/expressions/tests/test_derivatives.py:551:26: error[unsupported-operator] Operator
+is not supported between two objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/expressions/tests/test_matadd.py:36:12: error[unsupported-operator] Operator
+is not supported between objects of typeMatrixBaseandMatrixBase | Expr - sympy/matrices/expressions/tests/test_matmul.py:158:68: warning[possibly-missing-attribute] Attribute
as_explicitmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/expressions/tests/test_matmul.py:158:68: warning[possibly-missing-attribute] Attribute
as_explicitmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/expressions/tests/test_matpow.py:124:47: error[unsupported-operator] Operator
+is not supported between two objects of typeImmutableDenseMatrix
- sympy/matrices/expressions/tests/test_matpow.py:123:46: error[unsupported-operator] Operator
**is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandLiteral[2]
- sympy/matrices/expressions/tests/test_permutation.py:27:12: warning[possibly-missing-attribute] Attribute
as_explicitmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/expressions/tests/test_permutation.py:27:12: warning[possibly-missing-attribute] Attribute
as_explicitmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/inverse.py:385:11: error[unsupported-operator] Operator
-is not supported between objects of typeMatrixBaseandMatrixBase | Expr | Unknown
- sympy/matrices/inverse.py:384:11: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMatrixBase - sympy/matrices/inverse.py:392:11: error[unsupported-operator] Unary operator
-is not supported for object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/inverse.py:393:11: error[unsupported-operator] Operator
+is not supported between objects of typeMatrixBaseandMatrixBase | Expr | Unknown
- sympy/matrices/inverse.py:393:19: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMatrixBase | Expr - sympy/matrices/inverse.py:393:22: error[unsupported-operator] Unary operator
-is not supported for object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/matrixbase.py:979:18: error[unsupported-operator] Operator
+is not supported between two objects of typeSelf@_eval_wilkinson - sympy/matrices/matrixbase.py:2957:16: error[invalid-return-type] Return type does not match returned value: expected
Self@_eval_pow_by_cayley, foundSelf@_eval_pow_by_cayley | T2'return@call_highest_priority | T1'return@call_highest_priority - sympy/matrices/matrixbase.py:3046:5: error[invalid-argument-type] Argument is incorrect: Expected
(MatrixBase, MatrixBase | Expr, /) -> MatrixBase | Expr, foundOverload[[Self](self, other: Self) -> Self, (self, other: MatrixBase) -> MatrixBase, (self, other: Expr) -> MatrixBase]
- sympy/matrices/matrixbase.py:3046:5: error[invalid-argument-type] Argument is incorrect: Expected
(T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr, T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr, /) -> T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr, foundOverload[[Self](self, other: Self) -> Self, (self, other: MatrixBase) -> MatrixBase, (self, other: Expr) -> MatrixBase]
- sympy/matrices/matrixbase.py:3256:16: error[invalid-return-type] Return type does not match returned value: expected
MatrixBase, foundT2'return@call_highest_priority | T1'return@call_highest_priority - sympy/matrices/matrixbase.py:3256:29: error[invalid-argument-type] Argument is incorrect: Expected
T2'return@call_highest_priority | T1'return@call_highest_priority, foundMatrixBase - sympy/matrices/matrixbase.py:3310:16: error[unsupported-operator] Operator
+is not supported between two objects of typeMatrixBase - sympy/matrices/matrixbase.py:3314:16: error[invalid-return-type] Return type does not match returned value: expected
Tmat@__sub__, foundMatrixBase
- sympy/matrices/matrixbase.py:3944:39: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/matrixbase.py:3944:39: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method
- sympy/matrices/matrixbase.py:4386:16: error[unsupported-operator] Operator
+is not supported between two objects of typeSelf@add - sympy/matrices/matrixbase.py:4640:16: error[invalid-return-type] Return type does not match returned value: expected
Self@D, foundMatrixBase | Expr
- sympy/matrices/matrixbase.py:4640:16: error[invalid-return-type] Return type does not match returned value: expected
Self@D, foundT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/matrixbase.py:4923:16: error[invalid-return-type] Return type does not match returned value: expected
Self@analytic_func, foundSelf@analytic_func | T2'return@call_highest_priority | T1'return@call_highest_priority
- sympy/matrices/matrixbase.py:4748:16: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/matrixbase.py:4748:16: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method
- sympy/matrices/matrixbase.py:5078:16: error[invalid-return-type] Return type does not match returned value: expected
Self@log, foundMatrixBase | @Todo | Expr
- sympy/matrices/matrixbase.py:5076:19: error[unsupported-operator] Operator
*is not supported between objects of type@Todo | T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Exprand@Todo | Self@log
- sympy/matrices/repmatrix.py:321:17: error[unsupported-operator] Operator
-is not supported between two objects of typeSelf@_eval_is_symmetric - sympy/matrices/solvers.py:976:16: warning[possibly-missing-attribute] Attribute
solvemay be missing on object of typeMatrixBase | Expr
- sympy/matrices/solvers.py:976:16: warning[possibly-missing-attribute] Attribute
solvemay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/solvers.py:976:30: error[invalid-argument-type] Argument to bound method
solveis incorrect: Argument typeMatrixBase | Exprdoes not satisfy upper boundMatrixBaseof type variableSelf
- sympy/matrices/solvers.py:976:30: error[invalid-argument-type] Argument to bound method
solveis incorrect: Argument typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Exprdoes not satisfy upper boundMatrixBaseof type variableSelf
- sympy/matrices/solvers.py:976:30: error[invalid-argument-type] Argument to bound method
solveis incorrect: ExpectedMatrixBase, foundMatrixBase | Expr
- sympy/matrices/solvers.py:976:30: error[invalid-argument-type] Argument to bound method
solveis incorrect: ExpectedMatrixBase, foundT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/sparse.py:417:16: warning[possibly-missing-attribute] Attribute
invmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/sparse.py:417:16: warning[possibly-missing-attribute] Attribute
invmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/tests/test_commonmatrix.py:1249:31: error[unsupported-operator] Operator
+is not supported between objects of typeMutableDenseMatrixandImmutableDenseNDimArray - sympy/matrices/tests/test_decompositions.py:23:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:23:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:32:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:32:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:42:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:42:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:51:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:51:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:57:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:57:12: warning[possibly-missing-attribute] Attribute
permute_rowsmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr - sympy/matrices/tests/test_decompositions.py:77:19: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:84:19: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:90:19: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:103:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:110:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:123:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_decompositions.py:131:12: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_decompositions.py:131:21: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_decompositions.py:288:10: warning[possibly-missing-attribute] Attribute
applyfuncmay be missing on object of typeMatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:288:10: warning[possibly-missing-attribute] Attribute
applyfuncmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:393:16: error[no-matching-overload] No overload of function
simplifymatches arguments - sympy/matrices/tests/test_decompositions.py:394:16: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_decompositions.py:290:13: error[unsupported-operator] Operator
-is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:345:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:348:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:355:23: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:393:25: error[unsupported-operator] Operator
*is not supported between objects of typeUnknown | T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandUnknown | MutableDenseMatrix - sympy/matrices/tests/test_decompositions.py:394:25: error[unsupported-operator] Operator
*is not supported between objects of typeUnknown | T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandUnknown | MutableDenseMatrix
- sympy/matrices/tests/test_decompositions.py:395:16: warning[possibly-missing-attribute] Attribute
Hmay be missing on object of typeUnknown | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:395:16: warning[possibly-missing-attribute] Attribute
Hmay be missing on object of typeUnknown | T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:396:16: warning[possibly-missing-attribute] Attribute
Hmay be missing on object of typeUnknown | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:396:16: warning[possibly-missing-attribute] Attribute
Hmay be missing on object of typeUnknown | T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr
- sympy/matrices/tests/test_decompositions.py:439:13: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_decompositions.py:439:22: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_decompositions.py:451:12: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_decompositions.py:451:21: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_decompositions.py:464:12: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_decompositions.py:464:21: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_decompositions.py:475:12: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_decompositions.py:475:21: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_decompositions.py:488:12: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_decompositions.py:488:21: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_eigen.py:406:20: error[invalid-argument-type] Argument to function
maxis incorrect: ExpectedIterable[Unknown], foundMatrixBase | Unknown - sympy/matrices/tests/test_eigen.py:477:12: error[no-matching-overload] No overload of function
simplifymatches arguments - sympy/matrices/tests/test_eigen.py:492:12: warning[possibly-missing-attribute] Attribute
applyfuncmay be missing on object of typeMatrixBase | Expr | Unknown
- sympy/matrices/tests/test_eigen.py:257:16: warning[possibly-missing-attribute] Attribute
nmay be missing on object of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr - sympy/matrices/tests/test_eigen.py:306:14: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandImmutableDenseMatrix - sympy/matrices/tests/test_eigen.py:307:14: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_eigen.py:322:15: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandImmutableDenseMatrix - sympy/matrices/tests/test_eigen.py:323:15: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_eigen.py:364:14: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandImmutableDenseMatrix - sympy/matrices/tests/test_eigen.py:365:14: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_eigen.py:380:15: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandImmutableDenseMatrix - sympy/matrices/tests/test_eigen.py:381:15: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_eigen.py:405:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_eigen.py:477:21: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_eigen.py:492:13: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_eigen.py:793:19: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_immutable.py:105:23: error[unsupported-operator] Operator
+is not supported between two objects of typeImmutableDenseMatrix - sympy/matrices/tests/test_matrices.py:121:12: error[unsupported-operator] Operator
+is not supported between two objects of typeMutableDenseMatrix - sympy/matrices/tests/test_matrices.py:123:32: error[unsupported-operator] Operator
+is not supported between two objects of typeMutableDenseMatrix - sympy/matrices/tests/test_matrices.py:141:12: error[unsupported-operator] Operator
+is not supported between two objects of typeMutableDenseMatrix
- sympy/matrices/tests/test_matrices.py:201:12: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:201:12: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:202:12: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:202:12: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:203:12: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:203:12: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:204:12: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:204:12: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:205:12: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:205:12: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:206:12: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:206:12: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:213:16: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:213:16: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:214:16: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:214:16: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:215:16: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:215:16: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:216:16: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:216:16: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:217:16: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:217:16: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:218:16: error[not-subscriptable] Cannot subscript object of type
T2'return@call_highest_prioritywith no__getitem__method - sympy/matrices/tests/test_matrices.py:218:16: error[not-subscriptable] Cannot subscript object of type
T1'return@call_highest_prioritywith no__getitem__method
- sympy/matrices/tests/test_matrices.py:221:40: error[invalid-argument-type] Argument to bound method
multiply_elementwiseis incorrect: ExpectedMatrixBase, foundMatrixBase | Expr
- sympy/matrices/tests/test_matrices.py:221:40: error[invalid-argument-type] Argument to bound method
multiply_elementwiseis incorrect: ExpectedMatrixBase, foundT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | Expr - sympy/matrices/tests/test_matrices.py:394:16: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_matrices.py:1739:12: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_matrices.py:1581:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_matrices.py:1587:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_matrices.py:1594:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_matrices.py:1599:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_matrices.py:1607:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_matrices.py:1616:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix - sympy/matrices/tests/test_matrices.py:1739:21: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_matrices.py:2179:22: error[unsupported-operator] Operator
+is not supported between two objects of typeUnknown | MutableDenseMatrix - sympy/matrices/tests/test_matrices.py:2207:26: error[unsupported-operator] Operator
+is not supported between two objects of typeUnknown | MutableDenseMatrix
- sympy/matrices/tests/test_matrices.py:2557:12: error[unsupported-operator] Operator
*is not supported between objects of typeT2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandMutableDenseMatrix
- sympy/matrices/tests/test_matrices.py:2680:16: error[no-matching-overload] No overload of function
simplifymatches arguments - sympy/matrices/tests/test_matrices.py:2681:16: error[no-matching-overload] No overload of function
simplifymatches arguments
- sympy/matrices/tests/test_matrices.py:2680:25: error[unsupported-operator] Operator
*is not supported between objects of typeUnknown | T2'return@call_highest_priority | T1'return@call_highest_priority | MatrixBase | ExprandUnknown | MutableDenseMatrix - sympy/matrices/tests/test_matrices.py:2681:25: error[unsupported-operator] Operator
*is not supported between objects of type `Unknown | T2'return@call_highest_pri
... (truncated 328 lines) ...
No memory usage changes detected ✅