DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
https://docs.basedpyright.com
Other
1.02k stars 19 forks source link

baseline #608

Closed DetachHead closed 1 week ago

DetachHead commented 1 month ago

fixes #2

github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:236:16 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+     Operator "&" not supported for types "GreaterThan" and "LessThan"
+     Operator "&" not supported for types "GreaterThan" and "Equality"
+     Operator "&" not supported for types "GreaterThan" and "Relational"
+     Operator "&" not supported for types "GreaterThan" and "Unequality"
+     Operator "&" not supported for types "Equality" and "LessThan"
+     Operator "&" not supported for types "Equality" and "Equality"
+     Operator "&" not supported for types "Equality" and "Relational"
+     Operator "&" not supported for types "Equality" and "Unequality"
+     ... (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:425:16 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+     Operator "&" not supported for types "GreaterThan" and "LessThan"
+     Operator "&" not supported for types "GreaterThan" and "Equality"
+     Operator "&" not supported for types "GreaterThan" and "Relational"
+     Operator "&" not supported for types "GreaterThan" and "Unequality"
+     Operator "&" not supported for types "Equality" and "LessThan"
+     Operator "&" not supported for types "Equality" and "Equality"
+     Operator "&" not supported for types "Equality" and "Relational"
+     Operator "&" not supported for types "Equality" and "Unequality"
+     ... (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:713:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+     Operator "&" not supported for types "GreaterThan" and "LessThan"
+     Operator "&" not supported for types "GreaterThan" and "Equality"
+     Operator "&" not supported for types "GreaterThan" and "Relational"
+     Operator "&" not supported for types "GreaterThan" and "Unequality"
+     Operator "&" not supported for types "Equality" and "LessThan"
+     Operator "&" not supported for types "Equality" and "Equality"
+     Operator "&" not supported for types "Equality" and "Relational"
+     Operator "&" not supported for types "Equality" and "Unequality"
+     ... (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:771:22 - error: Invalid conditional operand of type "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality"
+     Method __bool__ for type "StrictGreaterThan" returns type "NoReturn" rather than "bool"
+     Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
+     Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"
+     Method __bool__ for type "Unequality" returns type "NoReturn" rather than "bool" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:771:39 - error: Invalid conditional operand of type "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+     Method __bool__ for type "LessThan" returns type "NoReturn" rather than "bool"
+     Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
+     Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"
+     Method __bool__ for type "Unequality" returns type "NoReturn" rather than "bool" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:811:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+     Operator "&" not supported for types "GreaterThan" and "LessThan"
+     Operator "&" not supported for types "GreaterThan" and "Equality"
+     Operator "&" not supported for types "GreaterThan" and "Relational"
+     Operator "&" not supported for types "GreaterThan" and "Unequality"
+     Operator "&" not supported for types "Equality" and "LessThan"
+     Operator "&" not supported for types "Equality" and "Equality"
+     Operator "&" not supported for types "Equality" and "Relational"
+     Operator "&" not supported for types "Equality" and "Unequality"
+     ... (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:814:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
+     Operator "&" not supported for types "GreaterThan" and "LessThan"
+     Operator "&" not supported for types "GreaterThan" and "Equality"
+     Operator "&" not supported for types "GreaterThan" and "Relational"
+     Operator "&" not supported for types "GreaterThan" and "Unequality"
+     Operator "&" not supported for types "Equality" and "LessThan"
+     Operator "&" not supported for types "Equality" and "Equality"
+     Operator "&" not supported for types "Equality" and "Relational"
+     Operator "&" not supported for types "Equality" and "Unequality"
+     ... (reportOperatorIssue)
-     Type of "summation" is "(f: Unknown, ...) -> (tuple[Unknown, ...] | Unknown | Self@Sum | Order | Any | Piecewise | Basic | Equality | Relational | Unequality | None)" (reportUnknownVariableType)
+     Type of "summation" is "(f: Unknown, ...) -> (tuple[Unknown, ...] | Unknown | Self@Sum | Self@Expr | Order | Any | Piecewise | Basic | Equality | Relational | Unequality | Sum | None)" (reportUnknownVariableType)
-     Type of "term1" is "tuple[Unknown, ...] | Unknown | Product | Basic | Order | Any | Equality | Relational | Unequality" (reportUnknownVariableType)
+     Type of "term1" is "tuple[Unknown, ...] | Unknown | Product | Basic | Equality | Order | Relational | Unequality | Any" (reportUnknownVariableType)
-     Type of "doit" is "((**hints: Unknown) -> Equality) | Unknown | ((**hints: Unknown) -> Relational) | ((**hints: Unknown) -> Unequality) | ((**hints: Unknown) -> (tuple[Unknown, ...] | Unknown | Product | Basic | Order | Any))" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Equality) | Unknown | ((**hints: Unknown) -> Relational) | ((**hints: Unknown) -> Unequality) | ((**hints: Unknown) -> (tuple[Unknown, ...] | Unknown | Product | Basic | Equality | Order | Relational | Unequality | Any))" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Equality) | Unknown | ((**hints: Unknown) -> Relational) | ((**hints: Unknown) -> Unequality) | ((**hints: Unknown) -> (tuple[Unknown, ...] | Unknown | Sum | Order | Any | Piecewise | Basic | None))" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Equality) | Unknown | ((**hints: Unknown) -> Relational) | ((**hints: Unknown) -> Unequality) | ((**hints: Unknown) -> (tuple[Unknown, ...] | Unknown | Sum | Self@Expr | Order | Any | Piecewise | Basic | Equality | Relational | Unequality | None))" (reportUnknownMemberType)
-     Type of "term2" is "tuple[Unknown, ...] | Unknown | Product | Basic | Order | Any | Equality | Relational | Unequality" (reportUnknownVariableType)
+     Type of "term2" is "tuple[Unknown, ...] | Unknown | Product | Basic | Equality | Order | Relational | Unequality | Any" (reportUnknownVariableType)
-     Type of "doit" is "((**hints: Unknown) -> Equality) | Unknown | ((**hints: Unknown) -> Relational) | ((**hints: Unknown) -> Unequality) | ((**hints: Unknown) -> (tuple[Unknown, ...] | Unknown | Product | Basic | Order | Any))" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Equality) | Unknown | ((**hints: Unknown) -> Relational) | ((**hints: Unknown) -> Unequality) | ((**hints: Unknown) -> (tuple[Unknown, ...] | Unknown | Product | Basic | Equality | Order | Relational | Unequality | Any))" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/random_matrix_models.py:110:36 - error: Operator "*" not supported for types "type[__class_UndefinedFunction] | Unknown" and "tuple[Unknown, ...] | Unknown | Product | Basic | Order | Any | Equality | Relational | Unequality"
+   /tmp/mypy_primer/projects/sympy/sympy/stats/random_matrix_models.py:110:36 - error: Operator "*" not supported for types "type[__class_UndefinedFunction] | Unknown" and "tuple[Unknown, ...] | Unknown | Product | Basic | Equality | Order | Relational | Unequality | Any"
-     Type of "f" is "tuple[Unknown, ...] | Unknown | Product | Basic | Order | Any | Equality | Relational | Unequality" (reportUnknownVariableType)
+     Type of "f" is "tuple[Unknown, ...] | Unknown | Product | Basic | Equality | Order | Relational | Unequality | Any" (reportUnknownVariableType)
-     Type of "doit" is "((**hints: Unknown) -> Equality) | Unknown | ((**hints: Unknown) -> Relational) | ((**hints: Unknown) -> Unequality) | ((**hints: Unknown) -> (tuple[Unknown, ...] | Unknown | Product | Basic | Order | Any))" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Equality) | Unknown | ((**hints: Unknown) -> Relational) | ((**hints: Unknown) -> Unequality) | ((**hints: Unknown) -> (tuple[Unknown, ...] | Unknown | Product | Basic | Equality | Order | Relational | Unequality | Any))" (reportUnknownMemberType)

... (truncated 1234 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/toperators.py:154:9 - error: Method "_expand_partial_derivative" overrides class "TensExpr" in an incompatible manner
+     Return type mismatch: base method returns type "PartialDerivative", override returns type "Unknown | TensAdd | TensMul | PartialDerivative"
+       Type "Unknown | TensAdd | TensMul | PartialDerivative" is incompatible with type "PartialDerivative"
+         "TensAdd" is incompatible with "PartialDerivative" (reportIncompatibleMethodOverride)
-     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
-     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/array_comprehension.py:263:9 - error: Method "doit" overrides class "Basic" in an incompatible manner
+     Return type mismatch: base method returns type "ArrayComprehension", override returns type "ArrayComprehension | ImmutableDenseNDimArray"
+       Type "ArrayComprehension | ImmutableDenseNDimArray" is incompatible with type "ArrayComprehension"
+         "ImmutableDenseNDimArray" is incompatible with "ArrayComprehension" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:25:5 - error: Return type, "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:25:5 - error: Return type, "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:71:16 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:71:16 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:215:5 - error: Return type, "Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray", is partially unknown (reportUnknownParameterType)
-     Type of "_array_diagonal" is "(expr: Unknown, ...) -> (Unknown | ZeroArray | ArrayDiagonal)" (reportUnknownVariableType)
+     Type of "_array_diagonal" is "(expr: Unknown, ...) -> ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:269:16 - error: Return type, "Unknown | ZeroArray | ArrayDiagonal", is partially unknown (reportUnknownVariableType)
-     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
-     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is partially unknown
+     Type of "args" is "list[Basic | Unknown]" (reportUnknownVariableType)
-     Type of "_flatten" is "(args: Unknown) -> Unknown" (reportUnknownMemberType)
+     Type of "_flatten" is "(args: Unknown) -> list[Basic | Unknown]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:27 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is partially unknown
+     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-     Argument corresponds to parameter "expr" in function "get_rank" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is partially unknown
+     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is partially unknown
-     Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
+     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:34 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "_permute_dims" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:57 - error: Argument type is unknown
-     Argument corresponds to parameter "args" in function "_array_tensor_product" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:64 - error: Argument type is unknown
-     Argument corresponds to parameter "permutation" in function "_permute_dims" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:272:16 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:272:16 - error: Argument type is partially unknown
+     Argument corresponds to parameter "obj" in function "len"
+     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:273:20 - error: Return type is unknown (reportUnknownVariableType)

... (truncated 1150 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
-     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
-     Type of "texpr" is "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray" (reportUnknownVariableType)
+     Type of "texpr" is "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_as_explicit.py:32:5 - error: Type of "texpr" is partially unknown
+     Type of "texpr" is "Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray" (reportUnknownVariableType)
-     Type of "texpr" is "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray" (reportUnknownVariableType)
+     Type of "texpr" is "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_as_explicit.py:54:5 - error: Type of "texpr" is partially unknown
+     Type of "texpr" is "Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray" (reportUnknownVariableType)
-     Type of "expr" is "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" (reportUnknownVariableType)
+     Type of "expr" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
-     Type of "expr" is "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" (reportUnknownVariableType)
+     Type of "expr" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
-     Type of "_support_function_tp1_recognize" is "(contraction_indices: Unknown, args: Unknown) -> (Mul | ArrayTensorProduct | Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
+     Type of "_support_function_tp1_recognize" is "(contraction_indices: Unknown, args: Unknown) -> (Mul | Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
-     Type of "_array_tensor_product" is "(...) -> ArrayTensorProduct" (reportUnknownVariableType)
+     Type of "_array_tensor_product" is "(...) -> (Unknown | ZeroArray | ArrayTensorProduct)" (reportUnknownVariableType)
-     Type of "_array_diagonal" is "(expr: Unknown, ...) -> ArrayDiagonal" (reportUnknownVariableType)
+     Type of "_array_diagonal" is "(expr: Unknown, ...) -> (Unknown | ZeroArray | ArrayDiagonal)" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:92:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:116:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:132:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:135:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:138:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:156:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:159:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:169:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:170:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
+     Type "Unknown | ZeroArray | ArrayDiagonal" is incompatible with type "ArrayDiagonal"
+       "ZeroArray" is incompatible with "ArrayDiagonal" (reportArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:173:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:174:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
+     Type "Unknown | ZeroArray | ArrayDiagonal" is incompatible with type "ArrayDiagonal"
+       "ZeroArray" is incompatible with "ArrayDiagonal" (reportArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:179:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:180:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
+     Type "Unknown | ZeroArray | ArrayDiagonal" is incompatible with type "ArrayDiagonal"
+       "ZeroArray" is incompatible with "ArrayDiagonal" (reportArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:183:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:184:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
+     Type "Unknown | ZeroArray | ArrayDiagonal" is incompatible with type "ArrayDiagonal"
+       "ZeroArray" is incompatible with "ArrayDiagonal" (reportArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:187:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:188:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
+     Type "Unknown | ZeroArray | ArrayDiagonal" is incompatible with type "ArrayDiagonal"
+       "ZeroArray" is incompatible with "ArrayDiagonal" (reportArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:192:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:195:5 - error: Type of "cg" is partially unknown
+     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:196:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
+     Type "Unknown | ZeroArray | ArrayDiagonal" is incompatible with type "ArrayDiagonal"

... (truncated 319 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_array_tensor_product" is "(...) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ArrayTensorProduct)" (reportUnknownVariableType)
+     Type of "_array_tensor_product" is "(...) -> ArrayTensorProduct" (reportUnknownVariableType)
-     Type of "_permute_dims" is "(expr: Unknown, permutation: Unknown, **kwargs: Unknown) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
+     Type of "_permute_dims" is "(expr: Unknown, permutation: Unknown, **kwargs: Unknown) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
-     Type of "convert_indexed_to_array" is "(expr: Unknown, first_indices: Unknown | None = None) -> (ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow)" (reportUnknownVariableType)
+     Type of "convert_indexed_to_array" is "(expr: Unknown, first_indices: Unknown | None = None) -> (ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims)" (reportUnknownVariableType)
-     Type of "_convert_indexed_to_array" is "(expr: Unknown) -> (tuple[Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction, tuple[Unknown, ...]] | tuple[ArrayDiagonal, tuple[Unknown, ...]] | tuple[Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ArrayTensorProduct, tuple[Unknown, ...]] | tuple[Basic, tuple[Unknown, ...]] | tuple[KroneckerDelta, tuple[Basic, ...]] | tuple[ArrayAdd, tuple[Unknown, ...]] | tuple[ArrayDiagonal, Unknown] | tuple[ArrayElementwiseApplyFunc, Unknown] | tuple[Pow | Unknown, tuple[()]])" (reportUnknownVariableType)
+     Type of "_convert_indexed_to_array" is "(expr: Unknown) -> (tuple[Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction, tuple[Unknown, ...]] | tuple[ArrayDiagonal, tuple[Unknown, ...]] | tuple[ArrayTensorProduct, tuple[Unknown, ...]] | tuple[Basic, tuple[Unknown, ...]] | tuple[KroneckerDelta, tuple[Basic, ...]] | tuple[ArrayAdd, tuple[Unknown, ...]] | tuple[ArrayDiagonal, Unknown] | tuple[ArrayElementwiseApplyFunc, Unknown] | tuple[Pow | Unknown, tuple[()]])" (reportUnknownVariableType)
-     Type of "ret1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "ret1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)

... (truncated 337 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
-     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is unknown (reportUnknownVariableType)
-     Type of "args" is "list[Basic | Unknown]" (reportUnknownVariableType)
-     Type of "_flatten" is "(args: Unknown) -> list[Basic | Unknown]" (reportUnknownMemberType)
+     Type of "_flatten" is "(args: Unknown) -> Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:27 - error: Argument type is unknown
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
+     Argument corresponds to parameter "expr" in function "get_rank" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is unknown (reportUnknownVariableType)
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is unknown
-     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
-     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:34 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "_permute_dims" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:57 - error: Argument type is unknown
+     Argument corresponds to parameter "args" in function "_array_tensor_product" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:64 - error: Argument type is unknown
+     Argument corresponds to parameter "permutation" in function "_permute_dims" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:272:16 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:272:16 - error: Argument type is unknown
-     Argument corresponds to parameter "obj" in function "len"
-     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:273:20 - error: Return type, "Basic | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:273:20 - error: Return type is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:276:61 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:276:61 - error: Type of "arg" is unknown (reportUnknownVariableType)
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-     Argument type is "list[Unknown | tuple[()]]" (reportUnknownArgumentType)
+     Argument type is "list[Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:61 - error: Type of "i" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:54 - error: Argument type is unknown
-     Type of "i" is "Basic | Unknown" (reportUnknownVariableType)
+     Argument corresponds to parameter "expr" in function "get_shape" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:61 - error: Type of "i" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:39 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:39 - error: Type of "arg" is unknown (reportUnknownVariableType)
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:56 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:56 - error: Argument type is unknown
-     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
-     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-     Type of "ranks" is "list[int | Unknown]" (reportUnknownVariableType)
+     Type of "ranks" is "list[Unknown | int]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:100 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:91 - error: Argument type is unknown
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
+     Argument corresponds to parameter "expr" in function "get_rank" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:100 - error: Type of "arg" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:13 - error: Type of "tp" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:101 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:101 - error: Type of "arg" is unknown (reportUnknownVariableType)
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:288:20 - error: Return type, "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction", is partially unknown (reportUnknownVariableType)

... (truncated 1164 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_array_tensor_product" is "(...) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ArrayTensorProduct)" (reportUnknownVariableType)
+     Type of "_array_tensor_product" is "(...) -> ArrayTensorProduct" (reportUnknownVariableType)
-     Type of "_permute_dims" is "(expr: Unknown, permutation: Unknown, **kwargs: Unknown) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
+     Type of "_permute_dims" is "(expr: Unknown, permutation: Unknown, **kwargs: Unknown) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
-     Type of "convert_indexed_to_array" is "(expr: Unknown, first_indices: Unknown | None = None) -> (ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow)" (reportUnknownVariableType)
+     Type of "convert_indexed_to_array" is "(expr: Unknown, first_indices: Unknown | None = None) -> (ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims)" (reportUnknownVariableType)
-     Type of "_convert_indexed_to_array" is "(expr: Unknown) -> (tuple[Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction, tuple[Unknown, ...]] | tuple[ArrayDiagonal, tuple[Unknown, ...]] | tuple[Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ArrayTensorProduct, tuple[Unknown, ...]] | tuple[Basic, tuple[Unknown, ...]] | tuple[KroneckerDelta, tuple[Basic, ...]] | tuple[ArrayAdd, tuple[Unknown, ...]] | tuple[ArrayDiagonal, Unknown] | tuple[ArrayElementwiseApplyFunc, Unknown] | tuple[Pow | Unknown, tuple[()]])" (reportUnknownVariableType)
+     Type of "_convert_indexed_to_array" is "(expr: Unknown) -> (tuple[Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction, tuple[Unknown, ...]] | tuple[ArrayDiagonal, tuple[Unknown, ...]] | tuple[ArrayTensorProduct, tuple[Unknown, ...]] | tuple[Basic, tuple[Unknown, ...]] | tuple[KroneckerDelta, tuple[Basic, ...]] | tuple[ArrayAdd, tuple[Unknown, ...]] | tuple[ArrayDiagonal, Unknown] | tuple[ArrayElementwiseApplyFunc, Unknown] | tuple[Pow | Unknown, tuple[()]])" (reportUnknownVariableType)
-     Type of "ret1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "ret1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "cg" is "ArrayElement | Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow | PermuteDims" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
+     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)
-     Type of "p1" is "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction | PermuteDims | KroneckerDelta | ArrayElementwiseApplyFunc | Pow" (reportUnknownVariableType)

... (truncated 611 lines) ...
github-actions[bot] commented 1 month ago

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
-     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
-     Type of "texpr" is "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray" (reportUnknownVariableType)
+     Type of "texpr" is "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_as_explicit.py:32:5 - error: Type of "texpr" is partially unknown
-     Type of "texpr" is "Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray" (reportUnknownVariableType)
-     Type of "texpr" is "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray" (reportUnknownVariableType)
+     Type of "texpr" is "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_as_explicit.py:54:5 - error: Type of "texpr" is partially unknown
-     Type of "texpr" is "Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray" (reportUnknownVariableType)
-     Type of "expr" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
+     Type of "expr" is "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" (reportUnknownVariableType)
-     Type of "expr" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
+     Type of "expr" is "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" (reportUnknownVariableType)
-     Type of "_support_function_tp1_recognize" is "(contraction_indices: Unknown, args: Unknown) -> (Mul | Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
+     Type of "_support_function_tp1_recognize" is "(contraction_indices: Unknown, args: Unknown) -> (Mul | ArrayTensorProduct | Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
-     Type of "_array_tensor_product" is "(...) -> (Unknown | ZeroArray | ArrayTensorProduct)" (reportUnknownVariableType)
+     Type of "_array_tensor_product" is "(...) -> ArrayTensorProduct" (reportUnknownVariableType)
-     Type of "_array_diagonal" is "(expr: Unknown, ...) -> (Unknown | ZeroArray | ArrayDiagonal)" (reportUnknownVariableType)
+     Type of "_array_diagonal" is "(expr: Unknown, ...) -> ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:92:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:116:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:132:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:135:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:138:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:156:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:159:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayTensorProduct" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:169:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:170:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
-     Type "Unknown | ZeroArray | ArrayDiagonal" is not assignable to type "ArrayDiagonal"
-       "ZeroArray" is not assignable to "ArrayDiagonal" (reportArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:173:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:174:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
-     Type "Unknown | ZeroArray | ArrayDiagonal" is not assignable to type "ArrayDiagonal"
-       "ZeroArray" is not assignable to "ArrayDiagonal" (reportArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:179:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:180:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
-     Type "Unknown | ZeroArray | ArrayDiagonal" is not assignable to type "ArrayDiagonal"
-       "ZeroArray" is not assignable to "ArrayDiagonal" (reportArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:183:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:184:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
-     Type "Unknown | ZeroArray | ArrayDiagonal" is not assignable to type "ArrayDiagonal"
-       "ZeroArray" is not assignable to "ArrayDiagonal" (reportArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:187:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:188:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
-     Type "Unknown | ZeroArray | ArrayDiagonal" is not assignable to type "ArrayDiagonal"
-       "ZeroArray" is not assignable to "ArrayDiagonal" (reportArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:192:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:195:5 - error: Type of "cg" is partially unknown
-     Type of "cg" is "Unknown | ZeroArray | ArrayDiagonal" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/tests/test_convert_array_to_matrix.py:196:41 - error: Argument of type "Unknown | ZeroArray | ArrayDiagonal" cannot be assigned to parameter "expr" of type "ArrayDiagonal" in function "_array_diag2contr_diagmatrix"
-     Type "Unknown | ZeroArray | ArrayDiagonal" is not assignable to type "ArrayDiagonal"

... (truncated 547 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
-     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is unknown (reportUnknownVariableType)
-     Type of "args" is "list[Basic | Unknown]" (reportUnknownVariableType)
-     Type of "_flatten" is "(args: Unknown) -> list[Basic | Unknown]" (reportUnknownMemberType)
+     Type of "_flatten" is "(args: Unknown) -> Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:27 - error: Argument type is unknown
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
+     Argument corresponds to parameter "expr" in function "get_rank" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is unknown (reportUnknownVariableType)
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is unknown
-     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
-     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:34 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "_permute_dims" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:57 - error: Argument type is unknown
+     Argument corresponds to parameter "args" in function "_array_tensor_product" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:64 - error: Argument type is unknown
+     Argument corresponds to parameter "permutation" in function "_permute_dims" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:272:16 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:272:16 - error: Argument type is unknown
-     Argument corresponds to parameter "obj" in function "len"
-     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:273:20 - error: Return type, "Basic | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:273:20 - error: Return type is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:276:61 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:276:61 - error: Type of "arg" is unknown (reportUnknownVariableType)
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-     Argument type is "list[Unknown | tuple[()]]" (reportUnknownArgumentType)
+     Argument type is "list[Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:61 - error: Type of "i" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:54 - error: Argument type is unknown
-     Type of "i" is "Basic | Unknown" (reportUnknownVariableType)
+     Argument corresponds to parameter "expr" in function "get_shape" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:61 - error: Type of "i" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:39 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:39 - error: Type of "arg" is unknown (reportUnknownVariableType)
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:56 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:56 - error: Argument type is unknown
-     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
-     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-     Type of "ranks" is "list[int | Unknown]" (reportUnknownVariableType)
+     Type of "ranks" is "list[Unknown | int]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:100 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:91 - error: Argument type is unknown
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
+     Argument corresponds to parameter "expr" in function "get_rank" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:100 - error: Type of "arg" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:13 - error: Type of "tp" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:101 - error: Type of "arg" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:101 - error: Type of "arg" is unknown (reportUnknownVariableType)
-     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:288:20 - error: Return type, "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction", is partially unknown (reportUnknownVariableType)

... (truncated 1271 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_array_tensor_product" is "(...) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ArrayTensorProduct)" (reportUnknownVariableType)
+     Type of "_array_tensor_product" is "(...) -> ArrayTensorProduct" (reportUnknownVariableType)
-     Type of "_permute_dims" is "(expr: Unknown, permutation: Unknown, **kwargs: Unknown) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
+     Type of "_permute_dims" is "(expr: Unknown, permutation: Unknown, **kwargs: Unknown) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:46:9 - error: Type of "addend" is partially unknown
-     Type of "addend" is "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ArrayTensorProduct" (reportUnknownVariableType)
-     Type of "addend" is "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" (reportUnknownVariableType)
+     Type of "addend" is "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:64:2 - error: Argument of type "(expr: ArraySymbol, x: _ArrayExpr) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" cannot be assigned to parameter of type "(...) -> NoReturn"
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:64:2 - error: Argument of type "(expr: ArraySymbol, x: _ArrayExpr) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" cannot be assigned to parameter of type "(...) -> NoReturn"
-     Type "(expr: ArraySymbol, x: _ArrayExpr) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" is not assignable to type "(...) -> NoReturn"
+     Type "(expr: ArraySymbol, x: _ArrayExpr) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" is not assignable to type "(...) -> NoReturn"
-       Function return type "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is incompatible with type "NoReturn"
+       Function return type "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is incompatible with type "NoReturn"
-         Type "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is not assignable to type "NoReturn"
+         Type "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is not assignable to type "NoReturn"
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:65:5 - error: Return type, "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:65:5 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:67:16 - error: Return type, "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:67:16 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:74:2 - error: Argument of type "(expr: MatrixSymbol, x: _ArrayExpr) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" cannot be assigned to parameter of type "(...) -> NoReturn"
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:74:2 - error: Argument of type "(expr: MatrixSymbol, x: _ArrayExpr) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" cannot be assigned to parameter of type "(...) -> NoReturn"
-     Type "(expr: MatrixSymbol, x: _ArrayExpr) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" is not assignable to type "(...) -> NoReturn"
+     Type "(expr: MatrixSymbol, x: _ArrayExpr) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" is not assignable to type "(...) -> NoReturn"
-       Function return type "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is incompatible with type "NoReturn"
+       Function return type "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is incompatible with type "NoReturn"
-         Type "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is not assignable to type "NoReturn"
+         Type "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is not assignable to type "NoReturn"
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:75:5 - error: Return type, "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:75:5 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:78:16 - error: Return type, "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:78:16 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:95:2 - error: Argument of type "(expr: Transpose, x: Expr) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" cannot be assigned to parameter of type "(...) -> NoReturn"
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:95:2 - error: Argument of type "(expr: Transpose, x: Expr) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" cannot be assigned to parameter of type "(...) -> NoReturn"
-     Type "(expr: Transpose, x: Expr) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" is not assignable to type "(...) -> NoReturn"
+     Type "(expr: Transpose, x: Expr) -> (Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" is not assignable to type "(...) -> NoReturn"
-       Function return type "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is incompatible with type "NoReturn"
+       Function return type "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is incompatible with type "NoReturn"
-         Type "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is not assignable to type "NoReturn"
+         Type "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims" is not assignable to type "NoReturn"
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:96:5 - error: Return type, "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:96:5 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:100:12 - error: Return type, "Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:100:12 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/arrayexpr_derivatives.py:103:2 - error: Argument of type "(expr: Inverse, x: Expr) -> (Unknown | ZeroArray | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims)" cannot be assigned to parameter of type "(...) -> NoReturn"

... (truncated 1682 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "P" is "(condition: Unknown, given_condition: Unknown | None = None, numsamples: Unknown | None = None, evaluate: bool = True, **kwargs: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Lambda | Relational | Unequality | int | None)" (reportUnknownVariableType)
+     Type of "P" is "(condition: Unknown, given_condition: Unknown | None = None, numsamples: Unknown | None = None, evaluate: bool = True, **kwargs: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | Self@Expr | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)" (reportUnknownVariableType)
-     Type of "E" is "(expr: Unknown, condition: Unknown | None = None, numsamples: Unknown | None = None, evaluate: bool = True, **kwargs: Unknown) -> (Unknown | Basic | Expectation | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None)" (reportUnknownVariableType)
+     Type of "E" is "(expr: Unknown, condition: Unknown | None = None, numsamples: Unknown | None = None, evaluate: bool = True, **kwargs: Unknown) -> (Unknown | Basic | Expectation | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None)" (reportUnknownVariableType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (RandomSymbol | Any)) | ((..., deep: bool = True) -> (JointRandomSymbol | Any)) | ((..., deep: bool = True) -> (Basic | Any)) | ((..., deep: bool = True) -> (Expectation | Any)) | Unknown | ((..., deep: bool = True) -> (Sum | Any)) | ((..., deep: bool = True) -> (Order | Any)) | Any | ((..., deep: bool = True) -> (Piecewise | Any)) | ((..., deep: bool = True) -> (Equality | Any)) | ((..., deep: bool = True) -> (Relational | Any)) | ((..., deep: bool = True) -> (Unequality | Any)) | ((..., deep: bool = True) -> (Integral | Any)) | ((..., deep: bool = True) -> (ExpectationMatrix | Any))" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (RandomSymbol | Any)) | ((..., deep: bool = True) -> (JointRandomSymbol | Any)) | ((..., deep: bool = True) -> (Basic | Any)) | ((..., deep: bool = True) -> (Expectation | Any)) | Unknown | ((..., deep: bool = True) -> (Sum | Any)) | ((..., deep: bool = True) -> (Self@Expr | Any)) | ((..., deep: bool = True) -> (Order | Any)) | Any | ((..., deep: bool = True) -> (Piecewise | Any)) | ((..., deep: bool = True) -> (Equality | Any)) | ((..., deep: bool = True) -> (Relational | Any)) | ((..., deep: bool = True) -> (Unequality | Any)) | ((..., deep: bool = True) -> (Integral | Any)) | ((..., deep: bool = True) -> (ExpectationMatrix | Any))" (reportUnknownMemberType)
-     Type of "P" is "(condition: Unknown, given_condition: Unknown | None = None, numsamples: Unknown | None = None, evaluate: bool = True, **kwargs: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Lambda | Relational | Unequality | int | None)" (reportUnknownVariableType)
+     Type of "P" is "(condition: Unknown, given_condition: Unknown | None = None, numsamples: Unknown | None = None, evaluate: bool = True, **kwargs: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | Self@Expr | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)" (reportUnknownVariableType)
-     Type of "E" is "(expr: Unknown, condition: Unknown | None = None, numsamples: Unknown | None = None, evaluate: bool = True, **kwargs: Unknown) -> (Unknown | Basic | Expectation | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None)" (reportUnknownVariableType)
+     Type of "E" is "(expr: Unknown, condition: Unknown | None = None, numsamples: Unknown | None = None, evaluate: bool = True, **kwargs: Unknown) -> (Unknown | Basic | Expectation | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None)" (reportUnknownVariableType)
-     Type of "covariance" is "(X: Unknown, Y: Unknown, condition: Unknown | None = None, **kwargs: Unknown) -> (CrossCovarianceMatrix | Covariance | Unknown | Basic | Expectation | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None)" (reportUnknownVariableType)
+     Type of "covariance" is "(X: Unknown, Y: Unknown, condition: Unknown | None = None, **kwargs: Unknown) -> (CrossCovarianceMatrix | Covariance | Unknown | Basic | Expectation | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None)" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_continuous_rv.py:366:12 - error: Operator "-" not supported for types "RandomSymbol | Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None" and "RandomSymbol | Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None"
+   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_continuous_rv.py:366:12 - error: Operator "-" not supported for types "RandomSymbol | Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None" and "RandomSymbol | Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None"
+     Operator "-" not supported for types "RandomSymbol" and "Expr*"
-     Operator "-" not supported for types "RandomSymbol" and "Piecewise"
-     Type of "expand" is "((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | RandomSymbol)) | Unknown | ((**hints: Unknown) -> (Basic | Add | Unknown | GenericIdentity* | Order | Expectation)) | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Sum)) | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any)) | Any | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Piecewise)) | ((**kwargs: Unknown) -> Equality) | ((**kwargs: Unknown) -> Relational) | ((**kwargs: Unknown) -> Unequality) | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Integral)) | ((**hints: Unknown) -> (Basic | Add | ExpectationMatrix | Unknown | GenericIdentity* | Order))" (reportUnknownMemberType)
+     Type of "expand" is "((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | RandomSymbol)) | Unknown | ((**hints: Unknown) -> (Basic | Add | Unknown | GenericIdentity* | Order | Expectation)) | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Sum)) | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Self@Expr)) | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any)) | Any | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Piecewise)) | ((**kwargs: Unknown) -> Equality) | ((**kwargs: Unknown) -> Relational) | ((**kwargs: Unknown) -> Unequality) | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Integral)) | ((**hints: Unknown) -> (Basic | Add | ExpectationMatrix | Unknown | GenericIdentity* | Order))" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_continuous_rv.py:1296:61 - error: Operator "**" not supported for types "RandomSymbol | Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | ExpectationMatrix | None" and "Literal[2]"

... (truncated 938 lines) ...
github-actions[bot] commented 1 month ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+     Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
-     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+     Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is partially unknown
+     Type of "args" is "list[Basic | Unknown]" (reportUnknownVariableType)
-     Type of "_flatten" is "(args: Unknown) -> Unknown" (reportUnknownMemberType)
+     Type of "_flatten" is "(args: Unknown) -> list[Basic | Unknown]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:27 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is partially unknown
+     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-     Argument corresponds to parameter "expr" in function "get_rank" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is partially unknown
+     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is partially unknown
-     Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
+     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:34 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "_permute_dims" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:57 - error: Argument type is unknown
-     Argument corresponds to parameter "args" in function "_array_tensor_product" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:64 - error: Argument type is unknown
-     Argument corresponds to parameter "permutation" in function "_permute_dims" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:272:16 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:272:16 - error: Argument type is partially unknown
+     Argument corresponds to parameter "obj" in function "len"
+     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:273:20 - error: Return type is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:273:20 - error: Return type, "Basic | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:276:61 - error: Type of "arg" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:276:61 - error: Type of "arg" is partially unknown
+     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-     Argument type is "list[Unknown]" (reportUnknownArgumentType)
+     Argument type is "list[Unknown | tuple[()]]" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:54 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:61 - error: Type of "i" is partially unknown
+     Type of "i" is "Basic | Unknown" (reportUnknownVariableType)
-     Argument corresponds to parameter "expr" in function "get_shape" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:277:61 - error: Type of "i" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:39 - error: Type of "arg" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:39 - error: Type of "arg" is partially unknown
+     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:56 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:282:56 - error: Argument type is partially unknown
-     Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
+     Argument corresponds to parameter "iterable" in function "__new__"
+     Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
-     Type of "ranks" is "list[Unknown | int]" (reportUnknownVariableType)
+     Type of "ranks" is "list[int | Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:91 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:100 - error: Type of "arg" is partially unknown
+     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
-     Argument corresponds to parameter "expr" in function "get_rank" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:284:100 - error: Type of "arg" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:13 - error: Type of "tp" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:101 - error: Type of "arg" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:286:101 - error: Type of "arg" is partially unknown
+     Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:288:20 - error: Return type, "Basic | Unknown | ZeroArray | ArrayTensorProduct | ArrayDiagonal | ArrayAdd | ArrayContraction", is partially unknown (reportUnknownVariableType)

... (truncated 1164 lines) ...
github-actions[bot] commented 4 weeks ago

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

sympy (https://github.com/sympy/sympy)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:270:15 - error: Operator "-" not supported for type "Unknown | Equality | Relational | Unequality | Integral" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:270:15 - error: Operator "-" not supported for type "Unknown | Equality | Integral" (reportOperatorIssue)
-     Type of "ie" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "ie" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "e" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "e" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eq" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eq" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eq" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "sol4" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "sol4" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "r1" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "r1" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "r2" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "r2" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "constraints" is "list[Equality | Unknown | Relational | Unequality | Any]" (reportUnknownVariableType)
+     Type of "constraints" is "list[Equality | Unknown | Any]" (reportUnknownVariableType)
-     Type of "constr" is "Equality | Unknown | Relational | Unequality | Any" (reportUnknownVariableType)
+     Type of "constr" is "Equality | Unknown | Any" (reportUnknownVariableType)
-     Type of "subs" is "((...) -> (Unknown | Equality | Basic)) | Unknown | ((...) -> (Unknown | Relational | Basic)) | ((...) -> (Unknown | Unequality | Basic)) | Any" (reportUnknownMemberType)
+     Type of "subs" is "((...) -> (Unknown | Equality | Basic)) | Unknown | Any" (reportUnknownMemberType)
-     Type of "eq" is "list[Equality | Unknown | Relational | Unequality]" (reportUnknownVariableType)
+     Type of "eq" is "list[Equality | Unknown]" (reportUnknownVariableType)
-     Type of "i" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "i" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eq" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq" is "Equality | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1613:25 - error: Operator "+" not supported for types "__class_UndefinedFunction | Unknown" and "Unknown | Equality | Relational | Unequality | Integral"
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1613:25 - error: Operator "+" not supported for types "__class_UndefinedFunction | Unknown" and "Unknown | Equality | Integral"
-     Operator "+" not supported for types "__class_UndefinedFunction" and "Relational"
-     Operator "+" not supported for types "__class_UndefinedFunction" and "Unequality"
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1614:10 - error: Operator "+" not supported for types "__class_UndefinedFunction | Unknown" and "Unknown | Equality | Relational | Unequality | Integral"
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1614:10 - error: Operator "+" not supported for types "__class_UndefinedFunction | Unknown" and "Unknown | Equality | Integral"
-     Operator "+" not supported for types "__class_UndefinedFunction" and "Relational"
-     Operator "+" not supported for types "__class_UndefinedFunction" and "Unequality"
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1615:25 - error: Operator "+" not supported for types "__class_UndefinedFunction | Unknown" and "Unknown | Equality | Relational | Unequality | Integral"
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1615:25 - error: Operator "+" not supported for types "__class_UndefinedFunction | Unknown" and "Unknown | Equality | Integral"
-     Operator "+" not supported for types "__class_UndefinedFunction" and "Relational"
-     Operator "+" not supported for types "__class_UndefinedFunction" and "Unequality"
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1617:25 - error: Operator "+" not supported for types "__class_UndefinedFunction | Unknown" and "Unknown | Equality | Relational | Unequality | Integral"
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1617:25 - error: Operator "+" not supported for types "__class_UndefinedFunction | Unknown" and "Unknown | Equality | Integral"
-     Operator "+" not supported for types "__class_UndefinedFunction" and "Relational"
-     Operator "+" not supported for types "__class_UndefinedFunction" and "Unequality"
-     Type of "eq1" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq1" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eq2" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq2" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eq3" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq3" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eq1" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq1" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eq2" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq2" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "e" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "e" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "expr1" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "expr1" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "expr2" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "expr2" is "Equality | Unknown" (reportUnknownVariableType)
-     Type of "eqns2" is "list[Equality | Unknown | Relational | Unequality | Any]" (reportUnknownVariableType)
+     Type of "eqns2" is "list[Equality | Unknown | Any]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solveset.py:2352:27 - error: Operator "&" not supported for types "Equality | Unknown | Relational | Unequality" and "Equality | Unknown | Relational | Unequality"
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solveset.py:2352:27 - error: Operator "&" not supported for types "Equality | Unknown" and "Equality | Unknown"
-     Operator "&" not supported for types "Equality" and "Equality"
+     Operator "&" not supported for types "Equality" and "Equality" (reportOperatorIssue)
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     Operator "&" not supported for types "Relational" and "Equality"
-     Operator "&" not supported for types "Relational" and "Relational"
-     Operator "&" not supported for types "Relational" and "Unequality"
-     Operator "&" not supported for types "Unequality" and "Equality"
-     Operator "&" not supported for types "Unequality" and "Relational"
-     ... (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solveset.py:2933:32 - error: Operator "&" not supported for types "Equality | Unknown | Relational | Unequality" and "Equality | Unknown | Relational | Unequality"
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solveset.py:2933:32 - error: Operator "&" not supported for types "Equality | Unknown" and "Equality | Unknown"
-     Operator "&" not supported for types "Equality" and "Equality"
+     Operator "&" not supported for types "Equality" and "Equality" (reportOperatorIssue)
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     Operator "&" not supported for types "Relational" and "Equality"
-     Operator "&" not supported for types "Relational" and "Relational"
-     Operator "&" not supported for types "Relational" and "Unequality"
-     Operator "&" not supported for types "Unequality" and "Equality"
-     Operator "&" not supported for types "Unequality" and "Relational"
-     ... (reportOperatorIssue)
-     Type of "eq1" is "list[Equality | Unknown | Relational | Unequality]" (reportUnknownVariableType)
+     Type of "eq1" is "list[Equality | Unknown]" (reportUnknownVariableType)
-     Type of "eq2" is "list[Equality | Unknown | Relational | Unequality]" (reportUnknownVariableType)
+     Type of "eq2" is "list[Equality | Unknown]" (reportUnknownVariableType)
-     Type of "eqs_eq" is "list[Equality | Unknown | Relational | Unequality]" (reportUnknownVariableType)
+     Type of "eqs_eq" is "list[Equality | Unknown]" (reportUnknownVariableType)
-     Type of "eq" is "Equality | Unknown | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq" is "Equality | Unknown" (reportUnknownVariableType)

... (truncated 2146 lines) ...
github-actions[bot] commented 3 weeks ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:50:12 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:243:12 - error: Return type, "CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any" (reportUnknownMemberType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:434:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:435:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:442:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:443:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:573:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:574:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:581:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:582:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:636:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:637:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:639:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:640:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:690:9 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:692:16 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:694:9 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:695:16 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:697:9 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)

... (truncated 110 lines) ...

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/tutorial/packages/netlib-lapack/package.py:59:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/tutorial/packages/netlib-lapack/package.py:59:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/tutorial/packages/netlib-lapack/package.py:60:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/tutorial/packages/netlib-lapack/package.py:60:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/tutorial/packages/netlib-lapack/package.py:61:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/tutorial/packages/netlib-lapack/package.py:61:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
github-actions[bot] commented 3 weeks ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "separatevars" is "(expr: Unknown, symbols: Unknown = [], dict: bool = False, force: bool = False) -> (dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None)" (reportUnknownVariableType)
+     Type of "separatevars" is "(expr: Unknown, symbols: Unknown = [], dict: bool = False, force: bool = False) -> (dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None)" (reportUnknownVariableType)
-     Type of "_get_const_characteristic_eq_sols" is "(r: Unknown, func: Unknown, order: Unknown) -> tuple[list[Unknown], list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]]" (reportUnknownVariableType)
+     Type of "_get_const_characteristic_eq_sols" is "(r: Unknown, func: Unknown, order: Unknown) -> tuple[list[Unknown], list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]]" (reportUnknownVariableType)
-     Type of "d" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownVariableType)
+     Type of "d" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownVariableType)
-     Type of "e" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownVariableType)
+     Type of "e" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownVariableType)
-     Type of "m1" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownMemberType)
+     Type of "m1" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownMemberType)
-     Type of "m2" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownMemberType)
+     Type of "m2" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownMemberType)
-     Type of "m1" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownMemberType)
+     Type of "m1" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownMemberType)
-     Argument type is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownArgumentType)
+     Argument type is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownArgumentType)
-     Type of "m2" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownMemberType)
+     Type of "m2" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1282:9 - error: Return type, "tuple[dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None, dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None, Symbol, AppliedUndef]", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1282:9 - error: Return type, "tuple[dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None, dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None, Symbol, AppliedUndef]", is partially unknown (reportUnknownParameterType)
-     Type of "m1" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownMemberType)
+     Type of "m1" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1285:16 - error: Return type, "tuple[dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None, dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None, Symbol, AppliedUndef]", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1285:16 - error: Return type, "tuple[dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None, dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None, Symbol, AppliedUndef]", is partially unknown (reportUnknownVariableType)
-     Type of "m2" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownMemberType)
+     Type of "m2" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownMemberType)
-     Type of "m1" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownVariableType)
+     Type of "m1" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownVariableType)
-     Type of "m2" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Self@Expr | Basic | Any | None" (reportUnknownVariableType)
+     Type of "m2" is "dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | Order | Abs | type[__class_UndefinedFunction] | Basic | Pow | Any | None" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1290:24 - error: "__getitem__" method not defined on type "Expr*" (reportIndexIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1290:24 - error: "__getitem__" method not defined on type "Pow" (reportIndexIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1290:36 - error: "__getitem__" method not defined on type "Expr*" (reportIndexIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1290:36 - error: "__getitem__" method not defined on type "Pow" (reportIndexIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1290:47 - error: "__getitem__" method not defined on type "Expr*" (reportIndexIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1290:47 - error: "__getitem__" method not defined on type "Pow" (reportIndexIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1292:37 - error: "__getitem__" method not defined on type "Expr*" (reportIndexIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1292:37 - error: "__getitem__" method not defined on type "Pow" (reportIndexIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1292:49 - error: "__getitem__" method not defined on type "Expr*" (reportIndexIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1292:49 - error: "__getitem__" method not defined on type "Pow" (reportIndexIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1293:9 - error: "__getitem__" method not defined on type "Expr*" (reportIndexIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/single.py:1293:9 - error: "__getitem__" method not defined on type "Pow" (reportIndexIssue)

... (truncated 198 lines) ...

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/pinned-gmake/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/pinned-gmake/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:25:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:25:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:26:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:26:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 64 lines) ...
github-actions[bot] commented 2 weeks ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
+     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-     Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
+     Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
-     Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
+     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
-     Argument corresponds to parameter "iterable" in function "__init__"
+     Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
-     Argument type is "Unknown | Any" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
-     Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:50:12 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:243:12 - error: Return type, "CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any | Unknown" (reportUnknownMemberType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:434:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:435:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:442:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:443:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:573:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:574:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:581:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:582:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:636:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:637:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:639:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)

... (truncated 151 lines) ...
github-actions[bot] commented 2 weeks ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:50:12 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:243:12 - error: Return type, "CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | Self@Expr | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | Self@Expr | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any | Unknown" (reportUnknownMemberType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:434:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:435:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:442:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:443:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:573:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:574:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:581:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:582:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:636:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:637:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:639:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:640:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:690:9 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:692:16 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:694:9 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any)) | Any" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:695:16 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:697:9 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any)) | Any" (reportUnknownMemberType)

... (truncated 110 lines) ...

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
github-actions[bot] commented 2 weeks ago

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

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
github-actions[bot] commented 2 weeks ago

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

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
github-actions[bot] commented 2 weeks ago

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

sympy (https://github.com/sympy/sympy)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/ode.py:2281:46 - error: Type of "i" is unknown (reportUnknownVariableType)
-     Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> (Unknown | Mul | Pow | Order | Expr | Add | None)" (reportUnknownVariableType)
+     Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is partially unknown
+     Type of "simplify" is "Unknown | ((**kwargs: Unknown) -> Unknown)" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:37 - error: "simplify" is not a known attribute of "None" (reportOptionalMemberAccess)
-     Type of "eq" is "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
+     Type of "eq" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:236:16 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
-     Operator "&" not supported for types "GreaterThan" and "LessThan"
-     Operator "&" not supported for types "GreaterThan" and "Equality"
-     Operator "&" not supported for types "GreaterThan" and "Relational"
-     Operator "&" not supported for types "GreaterThan" and "Unequality"
-     Operator "&" not supported for types "Equality" and "LessThan"
-     Operator "&" not supported for types "Equality" and "Equality"
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     ... (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:425:16 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
-     Operator "&" not supported for types "GreaterThan" and "LessThan"
-     Operator "&" not supported for types "GreaterThan" and "Equality"
-     Operator "&" not supported for types "GreaterThan" and "Relational"
-     Operator "&" not supported for types "GreaterThan" and "Unequality"
-     Operator "&" not supported for types "Equality" and "LessThan"
-     Operator "&" not supported for types "Equality" and "Equality"
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     ... (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:713:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
-     Operator "&" not supported for types "GreaterThan" and "LessThan"
-     Operator "&" not supported for types "GreaterThan" and "Equality"
-     Operator "&" not supported for types "GreaterThan" and "Relational"
-     Operator "&" not supported for types "GreaterThan" and "Unequality"
-     Operator "&" not supported for types "Equality" and "LessThan"
-     Operator "&" not supported for types "Equality" and "Equality"
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     ... (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:771:22 - error: Invalid conditional operand of type "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality"
-     Method __bool__ for type "StrictGreaterThan" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Unequality" returns type "NoReturn" rather than "bool" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:771:39 - error: Invalid conditional operand of type "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
-     Method __bool__ for type "LessThan" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Unequality" returns type "NoReturn" rather than "bool" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:811:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
-     Operator "&" not supported for types "GreaterThan" and "LessThan"
-     Operator "&" not supported for types "GreaterThan" and "Equality"
-     Operator "&" not supported for types "GreaterThan" and "Relational"
-     Operator "&" not supported for types "GreaterThan" and "Unequality"
-     Operator "&" not supported for types "Equality" and "LessThan"
-     Operator "&" not supported for types "Equality" and "Equality"
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     ... (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/frv_types.py:814:17 - error: Operator "&" not supported for types "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
-     Operator "&" not supported for types "GreaterThan" and "LessThan"
-     Operator "&" not supported for types "GreaterThan" and "Equality"
-     Operator "&" not supported for types "GreaterThan" and "Relational"
-     Operator "&" not supported for types "GreaterThan" and "Unequality"
-     Operator "&" not supported for types "Equality" and "LessThan"
-     Operator "&" not supported for types "Equality" and "Equality"
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     ... (reportOperatorIssue)
-     Type of "condition" is "_NotImplementedType | StrictLessThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
+     Type of "condition" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
-     Type of "condition" is "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
+     Type of "condition" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
-     Type of "condition" is "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
+     Type of "condition" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
-     Type of "condition" is "_NotImplementedType | GreaterThan | Unknown | Equality | Relational | Unequality" (reportUnknownVariableType)
+     Type of "condition" is "_NotImplementedType | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_stochastic_process.py:126:14 - error: Operator "&" not supported for types "_NotImplementedType | StrictLessThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality"
-     Operator "&" not supported for types "StrictLessThan" and "StrictGreaterThan"
-     Operator "&" not supported for types "StrictLessThan" and "Equality"
-     Operator "&" not supported for types "StrictLessThan" and "Relational"
-     Operator "&" not supported for types "StrictLessThan" and "Unequality"
-     Operator "&" not supported for types "Equality" and "StrictGreaterThan"
-     Operator "&" not supported for types "Equality" and "Equality"
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     ... (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_stochastic_process.py:128:14 - error: Operator "&" not supported for types "_NotImplementedType | StrictLessThan | Unknown | Equality | Relational | Unequality" and "_NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality"
-     Operator "&" not supported for types "StrictLessThan" and "StrictGreaterThan"
-     Operator "&" not supported for types "StrictLessThan" and "Equality"
-     Operator "&" not supported for types "StrictLessThan" and "Relational"
-     Operator "&" not supported for types "StrictLessThan" and "Unequality"
-     Operator "&" not supported for types "Equality" and "StrictGreaterThan"
-     Operator "&" not supported for types "Equality" and "Equality"
-     Operator "&" not supported for types "Equality" and "Relational"
-     Operator "&" not supported for types "Equality" and "Unequality"
-     ... (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/tensor/tests/test_indexed.py:96:12 - error: Invalid conditional operand of type "_NotImplementedType | LessThan | Unknown | Equality | Relational | Unequality"
-     Method __bool__ for type "LessThan" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Equality" returns type "NoReturn" rather than "bool"
-     Method __bool__ for type "Relational" returns type "NoReturn" rather than "bool"

... (truncated 20 lines) ...

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/pinned-gmake/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/pinned-gmake/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:25:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:25:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:26:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-floating/package.py:26:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-numpy/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-numpy/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-numpy/package.py:20:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-numpy/package.py:20:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-shapely/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-shapely/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-shapely/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/py-shapely/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/python/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/python/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/virtual-build/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 99 lines) ...
github-actions[bot] commented 1 week ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_get_const_characteristic_eq_sols" is "(r: Unknown, func: Unknown, order: Unknown) -> tuple[list[Unknown], list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]]" (reportUnknownVariableType)
+     Type of "_get_const_characteristic_eq_sols" is "(r: Unknown, func: Unknown, order: Unknown) -> tuple[list[Unknown], list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]]" (reportUnknownVariableType)
-     Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+     Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
-     Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+     Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
-     Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+     Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
-     Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> (Unknown | Mul | Pow | Order | Expr | Add | None)" (reportUnknownVariableType)
+     Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is partially unknown
+     Type of "simplify" is "Unknown | ((**kwargs: Unknown) -> Unknown)" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:37 - error: "simplify" is not a known attribute of "None" (reportOptionalMemberAccess)
-     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
-     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-     Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
+     Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
-     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
+     Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
-     Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+     Argument corresponds to parameter "iterable" in function "__init__"
+     Argument type is "Unknown | Any" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
-     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+     Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
-     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
-     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_symbolic_multivariate.py:64:50 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "__new__" (reportUnknownArgumentType)
-     Type of "c" is "Unknown | _NotImplementedType" (reportUnknownVariableType)
+     Type of "c" is "Unknown | Any | _NotImplementedType" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_lambdify.py:634:29 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "lambdify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)

... (truncated 17 lines) ...

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
github-actions[bot] commented 1 week ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
-     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-     Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
+     Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
-     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
+     Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
-     Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+     Argument corresponds to parameter "iterable" in function "__init__"
+     Argument type is "Unknown | Any" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
-     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+     Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
-     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
-     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_symbolic_multivariate.py:64:50 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "__new__" (reportUnknownArgumentType)
-     Type of "c" is "Unknown | _NotImplementedType" (reportUnknownVariableType)
+     Type of "c" is "Unknown | Any | _NotImplementedType" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_lambdify.py:634:29 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "lambdify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1313:24 - error: Argument type is unknown
-     Argument corresponds to parameter "e" in function "expand" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:25 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:55 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:290:30 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
- 596963 errors, 0 warnings, 0 notes
+ 596953 errors, 0 warnings, 0 notes

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/v1-consumer/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/v1-consumer/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/v1-consumer/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/v1-consumer/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-root/package.py:21:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-root/package.py:21:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-root/package.py:22:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-root/package.py:22:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external/package.py:20:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external/package.py:20:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external-root/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external-root/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 130 lines) ...
github-actions[bot] commented 1 week ago

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

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtable-dumper/package.py:21:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtable-dumper/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtable-dumper/package.py:21:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtable-dumper/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:57:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:57:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:58:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:58:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:92:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:92:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:94:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:94:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:96:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:96:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:99:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:99:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:126:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:126:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:127:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:127:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:129:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:129:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:149:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:149:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:152:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:152:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:154:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:154:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:155:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:155:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:160:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:160:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:161:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:161:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:162:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:162:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:164:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:164:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vtk/package.py:167:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 3711 lines) ...
github-actions[bot] commented 1 week ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
+     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-     Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
+     Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
-     Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
+     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
-     Argument corresponds to parameter "iterable" in function "__init__"
+     Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
-     Argument type is "Unknown | Any" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
-     Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_symbolic_multivariate.py:64:50 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "__new__" (reportUnknownArgumentType)
-     Type of "c" is "Unknown | Any | _NotImplementedType" (reportUnknownVariableType)
+     Type of "c" is "Unknown | _NotImplementedType" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_lambdify.py:634:29 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "lambdify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1313:24 - error: Argument type is unknown
+     Argument corresponds to parameter "e" in function "expand" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:25 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:55 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:290:30 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
- 596953 errors, 0 warnings, 0 notes
+ 596963 errors, 0 warnings, 0 notes

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external-root/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external-root/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
github-actions[bot] commented 1 week ago

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

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external/package.py:20:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external/package.py:20:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external-root/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external-root/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
github-actions[bot] commented 1 week ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:50:12 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:243:12 - error: Return type, "CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | Self@Expr | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | Self@Expr | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any" (reportUnknownMemberType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:434:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:435:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:442:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:443:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:573:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:574:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:581:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:582:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:636:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:637:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:639:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:640:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:690:9 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:692:16 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:694:9 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:695:16 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:697:9 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)

... (truncated 111 lines) ...

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:34:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:34:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:35:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:35:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:64:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:64:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:65:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:65:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:66:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:66:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:67:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:67:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:69:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/verrou/package.py:69:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vesta/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vesta/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vesta/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vesta/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vesta/package.py:20:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vesta/package.py:20:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:36:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:36:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:38:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:38:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:39:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:39:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:40:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:40:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:41:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/vgm/package.py:41:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/videoproto/package.py:20:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/videoproto/package.py:20:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/videoproto/package.py:21:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/videoproto/package.py:21:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/viennarna/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/viennarna/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/viennarna/package.py:25:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/viennarna/package.py:25:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 4246 lines) ...
github-actions[bot] commented 1 week ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
+     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-     Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
+     Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
-     Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
+     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
-     Argument corresponds to parameter "iterable" in function "__init__"
+     Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
-     Argument type is "Unknown | Any" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
-     Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_symbolic_multivariate.py:64:50 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "__new__" (reportUnknownArgumentType)
-     Type of "c" is "Unknown | Any | _NotImplementedType" (reportUnknownVariableType)
+     Type of "c" is "Unknown | _NotImplementedType" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_lambdify.py:634:29 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "lambdify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1313:24 - error: Argument type is unknown
+     Argument corresponds to parameter "e" in function "expand" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:25 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:55 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:290:30 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
- 597051 errors, 0 warnings, 0 notes
+ 597061 errors, 0 warnings, 0 notes

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/pinned-gmake/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/pinned-gmake/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 116 lines) ...
github-actions[bot] commented 1 week ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:50:12 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (CentralMoment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/rv_interface.py:243:12 - error: Return type, "CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Probability | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | Self@Expr | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Unknown | Any | BernoulliDistribution | Probability | Self@Expr | tuple[Unknown, ...] | Sum | Order | Piecewise | Basic | Equality | Relational | Unequality | Lambda | int | None)) | Any" (reportUnknownMemberType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Expectation | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> (Basic | Expectation | Unknown | tuple[Unknown, ...] | Sum | Self@Expr | Order | Any | Piecewise | Equality | Relational | Unequality | Integral | Self@Expectation | None)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:434:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Variance | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:435:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:442:9 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Variance | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Variance) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:443:16 - error: Return type, "Self@Variance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:573:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Covariance | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:574:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:581:9 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Covariance | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Self@Covariance) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:582:16 - error: Return type, "Self@Covariance | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:636:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:637:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:639:9 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@Moment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@Moment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:640:16 - error: Return type, "Self@Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
-     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any | Unknown" (reportUnknownMemberType)
+     Type of "doit" is "((**hints: Unknown) -> Unknown) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:690:9 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Moment | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:692:16 - error: Return type, "Moment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:694:9 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)
-     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)) | Any | Unknown" (reportUnknownMemberType)
+     Type of "rewrite" is "((..., deep: bool = True) -> (Self@CentralMoment | Any)) | Any" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:695:16 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/stats/symbolic_probability.py:697:9 - error: Return type, "Self@CentralMoment | Any | Unknown", is partially unknown (reportUnknownParameterType)
-     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any | Unknown)" (reportUnknownMemberType)
+     Type of "rewrite" is "(..., deep: bool = True) -> (Self@CentralMoment | Any)" (reportUnknownMemberType)

... (truncated 111 lines) ...

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/netlib-lapack/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/netlib-lapack/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/netlib-scalapack/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/netlib-scalapack/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/netlib-scalapack/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/netlib-scalapack/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/netlib-scalapack/package.py:20:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/netlib-scalapack/package.py:20:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/no-redistribute-dependent/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/no-redistribute-dependent/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/nosource/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/nosource/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/nosource-bundle/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/nosource-bundle/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/nosource-install/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/nosource-install/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/noversion-bundle/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/noversion-bundle/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/openmpi/package.py:15:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/openmpi/package.py:15:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:22:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:22:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:25:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:25:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:26:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:26:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:28:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:28:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:29:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/optional-dep-test/package.py:29:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 94 lines) ...
github-actions[bot] commented 1 week ago

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

sympy (https://github.com/sympy/sympy)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
-     Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+     Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
+     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-     Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
+     Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
-     Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
+     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
-     Argument corresponds to parameter "iterable" in function "__init__"
+     Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
-     Argument type is "Unknown | Any" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
-     Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
+     Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_symbolic_multivariate.py:64:50 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "__new__" (reportUnknownArgumentType)
-     Type of "c" is "Unknown | Any | _NotImplementedType" (reportUnknownVariableType)
+     Type of "c" is "Unknown | _NotImplementedType" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_lambdify.py:634:29 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "lambdify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1313:24 - error: Argument type is unknown
+     Argument corresponds to parameter "e" in function "expand" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:25 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:55 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:290:30 - error: Argument type is unknown
+     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
- 597108 errors, 0 warnings, 0 notes
+ 597118 errors, 0 warnings, 0 notes

spack (https://github.com/spack/spack)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external-root/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vdefault-or-external-root/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-pkg/package.py:24:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/version-test-root/package.py:15:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-ignore-conflict/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-middle/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:18:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/view-resolve-conflict-top/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/vtk-m/package.py:37:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-false/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/when-directives-true/package.py:23:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:19:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/with-constraint-met/package.py:23:9 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/wrong-variant-in-depends-on/package.py:16:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin.mock/packages/zmpi/package.py:19:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/compiler_runtime.test/packages/pkg-a/package.py:13:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-a/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/cycle-b/package.py:17:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:16:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
-   /tmp/mypy_primer/projects/spack/var/spack/repos/duplicates.test/packages/hdf5/package.py:17:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

... (truncated 120 lines) ...