Skip to content

Handle type[tuple] correctly #588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

krathul
Copy link

@krathul krathul commented Jun 27, 2025

This PR includes a fix for #530, thereby handling type[tuple] correctly as a callable. This PR also includes a unit test case for checking such a case.

@krathul
Copy link
Author

krathul commented Jun 27, 2025

Some of the test cases in test/simple.rs do not run to completion locally, it just says has been running for over 60 seconds. What could be the reason for this?

@yangdanny97
Copy link
Contributor

Some of the test cases in test/simple.rs do not run to completion locally, it just says has been running for over 60 seconds. What could be the reason for this?

@krathul are you rebased on the latest revision? There were some tests that looped infinitely a day or two ago, caused by a bad commit that has been reverted.

@yangdanny97
Copy link
Contributor

Could you include the original example from the issue as a test case? Thanks!

Copy link
Contributor

@yangdanny97 yangdanny97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Back to you with some comments

@krathul
Copy link
Author

krathul commented Jun 27, 2025

@krathul are you rebased on the latest revision? There were some tests that looped infinitely a day or two ago, caused by a bad commit that has been reverted
I remember I had done it.
Yup, it works now, thanks.

@krathul krathul requested a review from yangdanny97 June 27, 2025 20:07
Copy link

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

manticore (https://github.com/trailofbits/manticore)
- ERROR .../projects/manticore/tests/wasm/test_examples.py:125:13-64: Expected a callable, got type[tuple[Any, ...]] [not-callable]
+ ERROR .../projects/manticore/tests/wasm/test_examples.py:125:81-92: Expected 2 positional arguments, got 4 in function `tuple.__new__` [bad-argument-type]

ignite (https://github.com/pytorch/ignite)
- ERROR .../projects/ignite/ignite/metrics/precision.py:91:9-14: Class member `_BasePrecisionRecall.reset` overrides parent class `_BaseClassification` in an inconsistent manner [bad-override]

CPython (Argument Clinic) (https://github.com/python/cpython)
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/idlelib/idle_test/test_browser.py:25:40-48: Instance-only attribute `root` of class `ModuleBrowserTest` is not visible on the class [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/idlelib/idle_test/test_editor.py:108:34-42: Instance-only attribute `root` of class `IndentAndNewlineTest` is not visible on the class [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/idlelib/idle_test/test_editor.py:221:34-42: Instance-only attribute `root` of class `RMenuTest` is not visible on the class [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/idlelib/idle_test/test_iomenu.py:25:41-49: Instance-only attribute `root` of class `IOBindingTest` is not visible on the class [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/idlelib/idle_test/test_query.py:59:35-37: Argument `Dummy_Query` is not assignable to parameter `self` with type `Self@Query` in function `idlelib.query.Query.ok` [bad-argument-type]
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/idlelib/idle_test/test_query.py:66:35-37: Argument `Dummy_Query` is not assignable to parameter `self` with type `Self@Query` in function `idlelib.query.Query.ok` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/idlelib/idle_test/test_zoomheight.py:18:41-49: Instance-only attribute `root` of class `Test` is not visible on the class [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/test/test_typing.py:7608:13-21: Expected a callable, got type[tuple[Unknown]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/test/test_typing.py:7610:13-23: Expected a callable, got type[tuple[int]] [not-callable]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:610:47-70: Object of class `tuple` has no attribute `left_end_offset` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:611:50-76: Object of class `tuple` has no attribute `right_start_offset` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:614:24-47: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:616:24-50: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:627:36-56: Object of class `tuple` has no attribute `primary_char` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:628:38-60: Object of class `tuple` has no attribute `secondary_char` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:630:31-58: `-` is not supported between `object` and `Literal[1]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:630:60-87: `+` is not supported between `object` and `Literal[2]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:633:31-61: `-` is not supported between `object` and `Literal[1]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:633:63-93: `+` is not supported between `object` and `Literal[2]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:654:38-61: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:655:40-63: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:657:38-64: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:658:40-66: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:930:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:942:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:954:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:930:45-48: Expected 2 positional arguments, got 5 in function `tuple.__new__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:942:50-58: Expected 2 positional arguments, got 5 in function `tuple.__new__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/traceback.py:954:50-58: Expected 2 positional arguments, got 5 in function `tuple.__new__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/unittest/signals.py:43:24-25: Cannot set item in `WeakKeyDictionary[Unknown, None]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:102:11-12: Argument `Literal[1]` is not assignable to parameter `iterable` with type `Iterable[Any]` in function `tuple.__new__` [bad-argument-type]
- ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:102:9-10: Expected a callable, got type[tuple[Any, ...]] [not-callable]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:104:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:104:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:104:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:104:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:104:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:105:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:105:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:105:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:105:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:105:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:106:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:106:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:106:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:106:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:106:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:107:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:107:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:107:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:107:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:107:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:108:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:108:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:108:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:108:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Tools/scripts/var_access_benchmark.py:108:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]

setuptools (https://github.com/pypa/setuptools)
- ERROR .../projects/setuptools/setuptools/_vendor/jaraco/functools/__init__.py:484:16-31: Expected a callable, got type[tuple[Any, ...]] [not-callable]
+ ERROR .../projects/setuptools/setuptools/_vendor/jaraco/functools/__init__.py:484:38-44: Expected 2 positional arguments, got 3 in function `tuple.__new__` [bad-argument-type]

sympy (https://github.com/sympy/sympy)
- ERROR .../projects/sympy/sympy/concrete/delta.py:139:12-17: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | Unknown | Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/delta.py:139:12-17: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Unknown, Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/delta.py:141:14-19: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | Unknown | Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/delta.py:141:14-19: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Unknown, Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/delta.py:157:29-33: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | Unknown | Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/delta.py:157:29-33: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Unknown, Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/delta.py:317:12-17: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | Unknown | Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/delta.py:317:12-17: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Unknown, Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/delta.py:319:14-19: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | Unknown | Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/delta.py:319:14-19: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | One | Zero | Unknown | Unknown]] | list[dict[Unknown, Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/summations.py:1010:8-13: `<` is not supported between `dict[str | Unknown | Unknown, Expr | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1010:8-13: `<` is not supported between `dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1010:8-13: `<` is not supported between `dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/summations.py:1010:8-13: `<` is not supported between `dict[Unknown, Expr | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1010:8-13: `<` is not supported between `dict[Unknown, Expr | One | Zero | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/summations.py:1010:8-13: `<` is not supported between `set[tuple[Expr | Unknown | Unknown | None, ...]]` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1010:8-13: `<` is not supported between `set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]` and `Literal[0]` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/summations.py:1011:44-45: Argument `dict[str | Unknown | Unknown, Expr | Unknown | Unknown] | dict[Expr, Expr] | dict[str, Expr | Unknown | Unknown] | dict[Unknown, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | list[Unknown | None] | list[Unknown] | set[tuple[Expr | Unknown | Unknown | None, ...]] | set[Unknown] | tuple[Unknown, ...] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | tuple[Unknown, ...] | Unknown | Unknown` is not assignable to parameter `x` with type `SupportsAbs[@_]` in function `abs` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1011:44-45: Argument `dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown] | dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown] | dict[Expr, Expr] | dict[str, Expr | Unknown | Unknown] | dict[Unknown, Expr | One | Zero | Unknown | Unknown] | dict[Unknown, Unknown] | list[Unknown | None] | list[Unknown] | set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]] | set[Unknown] | tuple[Unknown, ...] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | tuple[Unknown, ...] | Unknown | Unknown` is not assignable to parameter `x` with type `SupportsAbs[@_]` in function `abs` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/summations.py:1012:10-15: `>` is not supported between `dict[str | Unknown | Unknown, Expr | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1012:10-15: `>` is not supported between `dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1012:10-15: `>` is not supported between `dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/summations.py:1012:10-15: `>` is not supported between `dict[Unknown, Expr | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1012:10-15: `>` is not supported between `dict[Unknown, Expr | One | Zero | Unknown | Unknown]` and `Literal[0]` [bad-argument-type]
- ERROR .../projects/sympy/sympy/concrete/summations.py:1012:10-15: `>` is not supported between `set[tuple[Expr | Unknown | Unknown | None, ...]]` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/concrete/summations.py:1012:10-15: `>` is not supported between `set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]` and `Literal[0]` [bad-argument-type]
- ERROR .../projects/sympy/sympy/core/expr.py:882:42-48: `-` is not supported between `type[Pow]` and `dict[str | Unknown | Unknown, Expr | Unknown | Unknown]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/core/expr.py:882:42-48: `-` is not supported between `type[Pow]` and `dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/core/expr.py:882:42-48: `-` is not supported between `type[Pow]` and `dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]` [missing-attribute]
- ERROR .../projects/sympy/sympy/core/expr.py:882:42-48: `-` is not supported between `type[Pow]` and `dict[Unknown, Expr | Unknown | Unknown]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/core/expr.py:882:42-48: `-` is not supported between `type[Pow]` and `dict[Unknown, Expr | One | Zero | Unknown | Unknown]` [missing-attribute]
- ERROR .../projects/sympy/sympy/core/expr.py:882:42-48: `-` is not supported between `type[Pow]` and `set[tuple[Expr | Unknown | Unknown | None, ...]]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/core/expr.py:882:42-48: `-` is not supported between `type[Pow]` and `set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]` [missing-attribute]
- ERROR .../projects/sympy/sympy/core/expr.py:883:42-48: `-` is not supported between `type[Pow]` and `dict[str | Unknown | Unknown, Expr | Unknown | Unknown]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/core/expr.py:883:42-48: `-` is not supported between `type[Pow]` and `dict[Expr | Zero | str | Unknown | Unknown, Expr | Unknown | Unknown]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/core/expr.py:883:42-48: `-` is not supported between `type[Pow]` and `dict[Zero | Unknown | Unknown, Expr | One | Zero | Unknown | Unknown]` [missing-attribute]
- ERROR .../projects/sympy/sympy/core/expr.py:883:42-48: `-` is not supported between `type[Pow]` and `dict[Unknown, Expr | Unknown | Unknown]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/core/expr.py:883:42-48: `-` is not supported between `type[Pow]` and `dict[Unknown, Expr | One | Zero | Unknown | Unknown]` [missing-attribute]
- ERROR .../projects/sympy/sympy/core/expr.py:883:42-48: `-` is not supported between `type[Pow]` and `set[tuple[Expr | Unknown | Unknown | None, ...]]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/core/expr.py:883:42-48: `-` is not supported between `type[Pow]` and `set[tuple[Expr | One | Zero | Unknown | Unknown | None, ...]]` [missing-attribute]
- ERROR .../projects/sympy/sympy/core/numbers.py:2544:16-48: Object of class `dict` has no attribute `is_Symbol` [missing-attribute]
- ERROR .../projects/sympy/sympy/core/sorting.py:300:5-312:25: `Generator[Unknown, Unknown, Unknown] | list[Unknown] | Unknown` is not assignable to `Generator[Unknown, Unknown, Unknown]` (caused by inconsistent types when breaking cycles) [bad-assignment]
- ERROR .../projects/sympy/sympy/core/sorting.py:301:16-21: Argument `Generator[Unknown, Unknown, Unknown] | list[Unknown] | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR .../projects/sympy/sympy/diffgeom/diffgeom.py:431:16-19: Argument `BooleanAtom | BooleanFalse | list[dict[str, Expr | Unknown | Unknown] | dict[Unknown, Unknown] | tuple[Expr | Unknown | Unknown, Expr] | tuple[Expr] | Unknown] | list[dict[str | Unknown | Unknown, Expr | Unknown | Unknown]] | list[dict[Expr, Expr]] | list[dict[Unknown, Expr | Unknown | Unknown]] | list[tuple[Unknown, ...]] | list[Unknown] | tuple[list[Unknown | None] | list[Unknown] | tuple[Unknown, ...], set[tuple[Expr | Unknown | Unknown | None, ...]]] | tuple[list[Unknown | None] | tuple[Unknown, ...], set[Unknown]] | tuple[list[Unknown | None], set[Unknown]] | tuple[list[Unknown], set[Unknown]] | Unknown | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]

... (truncated 265 lines) ...

scipy (https://github.com/scipy/scipy)
+ ERROR .../projects/scipy/scipy/_lib/cobyqa/examples/powell1994.py:91:31-59: No matching overload found for function `numpy._core.shape_base.block` [no-matching-overload]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:198:5-424:18: `int | signedinteger[_32Bit | _64Bit]` is not assignable to `ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool] | integer[Any]]] | tuple[ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool] | integer[Any]]], ...]` (caused by inconsistent types when breaking cycles) [bad-assignment]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:220:12-24: `>=` is not supported between `tuple[ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool] | integer[Any]]], ...]` and `int` [bad-argument-type]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:230:29-37: `+` is not supported between `tuple[ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool] | integer[Any]]], ...]` and `Literal[1]` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:17-39: Cannot set item in `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:42-64: Can't apply arguments to non-class, got ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]] [bad-specialization]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:13-28: Cannot set item in `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:13-28: Cannot set item in `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [missing-attribute]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:32-50: Expected an iterable, got `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [not-iterable]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:38-44: `+` is not supported between `tuple[ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool] | integer[Any]]], ...]` and `Literal[1]` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:33-50: Can't apply arguments to non-class, got ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]] [bad-specialization]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:52-62: Can't apply arguments to non-class, got ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]] [bad-specialization]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:306:42-48: `+` is not supported between `tuple[ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool] | integer[Any]]], ...]` and `Literal[1]` [no-matching-overload]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:306:56-68: Cannot index into `bytes` [no-matching-overload]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:306:56-68: Cannot index into `str` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `Buffer` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `_SupportsArray[dtype[Any]]` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `bytes` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `complex` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `str` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:57-71: Cannot index into `_NestedSequence[bytes | complex | str]` [bad-argument-type]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:57-71: Cannot index into `_NestedSequence[_SupportsArray[dtype[Any]]]` [bad-argument-type]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/common/preproc.py:239:21-27: No matching overload found for function `numpy._typing._ufunc._UFunc_Nin1_Nout1.__call__` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/common/preproc.py:239:31-39: `<` is not supported between `None` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/common/preproc.py:246:21-30: No matching overload found for function `numpy._typing._ufunc._UFunc_Nin1_Nout1.__call__` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/common/preproc.py:246:34-45: `<` is not supported between `None` and `Literal[0]` [bad-argument-type]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/common/preproc.py:275:20-29: `>=` is not supported between `None` and `Literal[0]` [bad-argument-type]
- ERROR .../projects/scipy/scipy/optimize/_lsq/dogbox.py:198:22-34: `*` is not supported between `ndarray[tuple[Any, ...], dtype[int]]` and `ndarray[tuple[int, int], [_2DShapeT_co, _DTypeT_co](self: matrix[_2DShapeT_co, _DTypeT_co]) -> _DTypeT_co]` [no-matching-overload]
- ERROR .../projects/scipy/scipy/optimize/_lsq/dogbox.py:198:22-34: `*` is not supported between `ndarray[tuple[Any, ...], dtype[int]]` and `ndarray[tuple[Any, ...], [_2DShapeT_co, _DTypeT_co](self: matrix[_2DShapeT_co, _DTypeT_co]) -> _DTypeT_co]` [no-matching-overload]
- ERROR .../projects/scipy/scipy/optimize/_lsq/dogbox.py:198:22-38: `<` is not supported between `ndarray[tuple[Any, ...], dtype[int]]` and `Literal[0]` [no-matching-overload]
- ERROR .../projects/scipy/scipy/optimize/_shgo.py:1100:24-66: Expected a callable, got type[tuple[Any, ...]] [not-callable]
+ ERROR .../projects/scipy/scipy/optimize/_shgo.py:1100:67-73: Argument `ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `iterable` with type `Iterable[Any]` in function `tuple.__new__` [bad-argument-type]
+ ERROR .../projects/scipy/scipy/optimize/_shgo.py:1100:75-79: Expected 2 positional arguments, got 3 in function `tuple.__new__` [bad-argument-type]
+ ERROR .../projects/scipy/scipy/optimize/_shgo.py:1112:30-45: Object of class `tuple` has no attribute `points` [missing-attribute]
+ ERROR .../projects/scipy/scipy/optimize/_shgo.py:1112:47-65: Object of class `tuple` has no attribute `simplices` [missing-attribute]
- ERROR .../projects/scipy/scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py:695:34-56: Cannot index into `_SupportsArray[dtype[Unknown]]` [missing-attribute]
- ERROR .../projects/scipy/scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py:695:42-55: Cannot index into `_NestedSequence[_SupportsArray[dtype[Unknown]]]` [bad-argument-type]

CPython (cases_generator) (https://github.com/python/cpython)
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/idlelib/idle_test/test_editor.py:108:34-42: Instance-only attribute `root` of class `IndentAndNewlineTest` is not visible on the class [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/idlelib/idle_test/test_editor.py:221:34-42: Instance-only attribute `root` of class `RMenuTest` is not visible on the class [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/idlelib/idle_test/test_iomenu.py:25:41-49: Instance-only attribute `root` of class `IOBindingTest` is not visible on the class [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/idlelib/idle_test/test_query.py:59:35-37: Argument `Dummy_Query` is not assignable to parameter `self` with type `Self@Query` in function `idlelib.query.Query.ok` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/idlelib/idle_test/test_query.py:66:35-37: Argument `Dummy_Query` is not assignable to parameter `self` with type `Self@Query` in function `idlelib.query.Query.ok` [bad-argument-type]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/idlelib/idle_test/test_zoomheight.py:18:41-49: Instance-only attribute `root` of class `Test` is not visible on the class [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/test/test_typing.py:7608:13-21: Expected a callable, got type[tuple[Unknown]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/test/test_typing.py:7610:13-23: Expected a callable, got type[tuple[int]] [not-callable]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:610:47-70: Object of class `tuple` has no attribute `left_end_offset` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:611:50-76: Object of class `tuple` has no attribute `right_start_offset` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:614:24-47: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:616:24-50: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:627:36-56: Object of class `tuple` has no attribute `primary_char` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:628:38-60: Object of class `tuple` has no attribute `secondary_char` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:630:31-58: `-` is not supported between `object` and `Literal[1]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:630:60-87: `+` is not supported between `object` and `Literal[2]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:633:31-61: `-` is not supported between `object` and `Literal[1]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:633:63-93: `+` is not supported between `object` and `Literal[2]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:654:38-61: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:655:40-63: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:657:38-64: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:658:40-66: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:930:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:942:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:954:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:930:45-48: Expected 2 positional arguments, got 5 in function `tuple.__new__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:942:50-58: Expected 2 positional arguments, got 5 in function `tuple.__new__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/traceback.py:954:50-58: Expected 2 positional arguments, got 5 in function `tuple.__new__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:102:11-12: Argument `Literal[1]` is not assignable to parameter `iterable` with type `Iterable[Any]` in function `tuple.__new__` [bad-argument-type]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:102:9-10: Expected a callable, got type[tuple[Any, ...]] [not-callable]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:104:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:104:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:104:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:104:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:104:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:105:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:105:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:105:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:105:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:105:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:106:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:106:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:106:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:106:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:106:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:107:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:107:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:107:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:107:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:107:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:108:9-12: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:108:17-20: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:108:25-28: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:108:33-36: Object of class `tuple` has no attribute `x` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Tools/scripts/var_access_benchmark.py:108:41-44: Object of class `tuple` has no attribute `x` [missing-attribute]

artigraph (https://github.com/artigraph/artigraph)
- ERROR .../projects/artigraph/tests/arti/io/test_gcs_io.py:36:35-60: Expected a callable, got type[tuple[StoragePartitionSnapshot, ...]] [not-callable]
- ERROR .../projects/artigraph/tests/arti/io/test_localfile_io.py:37:35-60: Expected a callable, got type[tuple[StoragePartitionSnapshot, ...]] [not-callable]
- ERROR .../projects/artigraph/tests/arti/producers/test_producer.py:205:16-41: Expected a callable, got type[tuple[StoragePartitionSnapshot, ...]] [not-callable]
- ERROR .../projects/artigraph/tests/arti/producers/test_producer.py:210:16-41: Expected a callable, got type[tuple[StoragePartitionSnapshot, ...]] [not-callable]
- ERROR .../projects/artigraph/tests/arti/producers/test_producer.py:218:47-72: Expected a callable, got type[tuple[StoragePartitionSnapshot, ...]] [not-callable]
- ERROR .../projects/artigraph/src/arti/producers/__init__.py:208:19-26: Expected a callable, got type[tuple[View, ...]] [not-callable]

scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ ERROR .../projects/scikit-learn/sklearn/datasets/_rcv1.py:277:18-37: TODO: Expr::attr_infer_for_type attribute base undefined for type: @_ (trying to access keys) [missing-attribute]

CPython (peg_generator) (https://github.com/python/cpython)
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/idlelib/idle_test/test_query.py:59:35-37: Argument `Dummy_Query` is not assignable to parameter `self` with type `Self@Query` in function `idlelib.query.Query.ok` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/idlelib/idle_test/test_query.py:66:35-37: Argument `Dummy_Query` is not assignable to parameter `self` with type `Self@Query` in function `idlelib.query.Query.ok` [bad-argument-type]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/test/test_typing.py:7608:13-21: Expected a callable, got type[tuple[Unknown]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/test/test_typing.py:7610:13-23: Expected a callable, got type[tuple[int]] [not-callable]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:610:47-70: Object of class `tuple` has no attribute `left_end_offset` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:611:50-76: Object of class `tuple` has no attribute `right_start_offset` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:614:24-47: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:616:24-50: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:627:36-56: Object of class `tuple` has no attribute `primary_char` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:628:38-60: Object of class `tuple` has no attribute `secondary_char` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:630:31-58: `-` is not supported between `object` and `Literal[1]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:630:60-87: `+` is not supported between `object` and `Literal[2]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:633:31-61: `-` is not supported between `object` and `Literal[1]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:633:63-93: `+` is not supported between `object` and `Literal[2]` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:654:38-61: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:655:40-63: Object of class `tuple` has no attribute `left_end_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:657:38-64: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:658:40-66: Object of class `tuple` has no attribute `right_start_lineno` [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:930:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:942:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:954:28-36: Expected a callable, got type[tuple[Any, ...]] [not-callable]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/traceback.py:930:45-48: Expected 2 positional arguments, got 5 in function `tuple.__new__` [bad-argument-type]

... (truncated 197 lines) ...```

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

Successfully merging this pull request may close these issues.

3 participants