Skip to content

[WIP] test parallel checking#21308

Closed
ilevkivskyi wants to merge 11 commits intopython:masterfrom
ilevkivskyi:try-parallel
Closed

[WIP] test parallel checking#21308
ilevkivskyi wants to merge 11 commits intopython:masterfrom
ilevkivskyi:try-parallel

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

No description provided.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@ilevkivskyi
Copy link
Copy Markdown
Member Author

@JukkaL mypy_primer uncovered some issues with parallel checking, all minor, so I will batch them in the same PR.

I will probably simply repurpose this PR when I am happy. I will ping you again when this is ready for review.

@github-actions

This comment has been minimized.

@ilevkivskyi
Copy link
Copy Markdown
Member Author

Actually some of the issues look less trivial than I thought, so I will split the fixes into 2-3 separate PRs.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

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

kornia (https://github.com/kornia/kornia)
+ kornia/morphology/morphology.py:21: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- kornia/augmentation/_2d/geometric/affine.py:20: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

pyinstrument (https://github.com/joerick/pyinstrument)
+ pyinstrument/vendor/appdirs.py:534: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- pyinstrument/magic/magic.py:12: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

spark (https://github.com/apache/spark)
+ python/pyspark/sql/streaming/proto/StateMessage_pb2.pyi:39: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- python/pyspark/errors/exceptions/connect.py:48: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ python/pyspark/pandas/frame.py:665: error: Unused "type: ignore" comment  [unused-ignore]
+ python/pyspark/pandas/frame.py:665: error: Redundant cast to "InternalFrame"  [redundant-cast]
+ python/pyspark/pandas/frame.py:665: note: Error code "redundant-cast" not covered by "type: ignore[has-type]" comment
- python/pyspark/sql/connect/client/core.py:61: note: Hint: "python3 -m pip install types-grpcio-status"
- python/pyspark/sql/connect/client/core.py:61: note: (or run "mypy --install-types" to install all missing stub packages)
+ python/pyspark/sql/connect/client/retries.py:24: note: Hint: "python3 -m pip install types-grpcio-status"
+ python/pyspark/sql/connect/client/retries.py:24: note: (or run "mypy --install-types" to install all missing stub packages)
+ python/pyspark/streaming/context.py:109: error: Incompatible types in assignment (expression has type "TransformFunctionSerializer", variable has type "None")  [assignment]
+ python/pyspark/streaming/context.py:227: error: Incompatible types in assignment (expression has type "StreamingContext", variable has type "None")  [assignment]

aiohttp-devtools (https://github.com/aio-libs/aiohttp-devtools)
+ tests/conftest.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- aiohttp_devtools/runserver/serve.py:31: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/utilities/collections.py:504: error: "None" object is not iterable  [misc]
+ src/prefect/utilities/collections.py:505: error: "None" object is not iterable  [misc]
+ src/prefect/_internal/concurrency/api.py:182: error: Variable "prefect._internal.concurrency.api.T" is not valid as a type  [valid-type]
+ src/prefect/_internal/concurrency/api.py:182: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/_internal/concurrency/api.py:183: error: "Call" expects no type arguments, but 1 given  [type-arg]
+ src/prefect/_internal/concurrency/api.py:183: error: Variable "prefect._internal.concurrency.api.T" is not valid as a type  [valid-type]
+ src/prefect/_internal/concurrency/api.py:183: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/api.py:181: error: "Call" expects no type arguments, but 1 given  [type-arg]
- src/prefect/_internal/concurrency/api.py:181: error: Variable "prefect._internal.concurrency.api.T" is not valid as a type  [valid-type]
- src/prefect/_internal/concurrency/api.py:181: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/runner/runner.py:319: error: Incompatible return value type (got "EventsClient | None", expected "EventsClient")  [return-value]
+ src/prefect/server/api/deployments.py:459: error: Unused "type: ignore" comment  [unused-ignore]
- src/prefect/server/api/deployments.py:459: error: Invalid "type: ignore" comment  [syntax]
- src/prefect/runner/runner.py:296: error: Cannot determine type of "_scheduled_run_poller"  [has-type]
- src/prefect/runner/runner.py:302: error: Cannot determine type of "_scheduled_run_poller"  [has-type]
- src/prefect/runner/runner.py:319: error: Cannot determine type of "_event_emitter"  [has-type]
- src/prefect/runner/runner.py:658: error: Cannot determine type of "_scheduled_run_poller"  [has-type]
- src/prefect/runner/runner.py:660: error: Cannot determine type of "_scheduled_run_poller"  [has-type]
- src/prefect/runner/runner.py:674: error: Cannot determine type of "_cancellation_manager"  [has-type]
- src/prefect/runner/runner.py:686: error: Cannot determine type of "_scheduled_run_poller"  [has-type]
- src/prefect/runner/runner.py:687: error: Cannot determine type of "_scheduled_run_poller"  [has-type]
- src/prefect/runner/runner.py:760: error: Cannot determine type of "_runs_task_group"  [has-type]
- src/prefect/runner/runner.py:1234: error: Cannot determine type of "_cancellation_manager"  [has-type]
- src/prefect/runner/runner.py:1342: error: Cannot determine type of "_event_emitter"  [has-type]
- src/prefect/runner/runner.py:1350: error: Cannot determine type of "_event_emitter"  [has-type]
- src/prefect/runner/runner.py:1478: error: Cannot determine type of "_state_proposer"  [has-type]
- src/prefect/runner/runner.py:1481: error: Cannot determine type of "_state_proposer"  [has-type]
- src/prefect/runner/runner.py:1486: error: Cannot determine type of "_state_proposer"  [has-type]
- src/prefect/runner/runner.py:1538: error: Cannot determine type of "_state_proposer"  [has-type]
- src/prefect/workers/base.py:30: error: Invalid "type: ignore" comment  [syntax]
+ src/prefect/workers/base.py:30: error: Unused "type: ignore" comment  [unused-ignore]

setuptools (https://github.com/pypa/setuptools)
+ setuptools/tests/environment.py:7: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- setuptools/command/_requirestxt.py:18: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

colour (https://github.com/colour-science/colour)
+ colour/characterisation/aces_it.py:976: error: Unexpected "..."  [misc]
+ colour/characterisation/aces_it.py:977: error: Unexpected "..."  [misc]
- colour/characterisation/aces_it.py:975: error: Ellipses cannot accompany other parameter types in function type signature  [syntax]
- colour/recovery/jakob2019.py:67: note: Hint: "python3 -m pip install types-tqdm"
- colour/graph/common.py:64: note: Hint: "python3 -m pip install types-networkx"
- colour/graph/common.py:64: note: (or run "mypy --install-types" to install all missing stub packages)
+ colour/recovery/otsu2018.py:71: note: Hint: "python3 -m pip install types-tqdm"
+ colour/utilities/network.py:1809: note: Hint: "python3 -m pip install types-networkx"
+ colour/utilities/network.py:1809: note: (or run "mypy --install-types" to install all missing stub packages)
+ colour/utilities/network.py:1809: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- colour/geometry/tests/test_section.py:156: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

strawberry (https://github.com/strawberry-graphql/strawberry)
+ strawberry/ext/mypy_plugin.py:33: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ strawberry/exceptions/syntax.py:5: note: (or run "mypy --install-types" to install all missing stub packages)
- strawberry/channels/handlers/base.py:13: note: (or run "mypy --install-types" to install all missing stub packages)
- strawberry/aiohttp/views.py:11: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

websockets (https://github.com/aaugustin/websockets)
+ src/websockets/trio/utils.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/websockets/asyncio/client.py:685: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

operator (https://github.com/canonical/operator)
- ops/lib/__init__.py:86: error: "None" has no attribute "get"  [attr-defined]
+ ops/lib/__init__.py:86: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ ops/_private/__init__.py:17: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- ops/charm.py:137: error: Invalid "type: ignore" comment  [syntax]
- ops/charm.py:137: error: Incompatible types in assignment (expression has type "str | None", variable has type "str")  [assignment]
- ops/__init__.py:351: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

porcupine (https://github.com/Akuli/porcupine)
+ porcupine/settings.py:20: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- porcupine/plugins/highlight/tree_sitter_highlighter.py:10: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

zope.interface (https://github.com/zopefoundation/zope.interface)
+ src/zope/interface/interfaces.py:18: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/zope/interface/__init__.py:53: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/resolver.py:12:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ aiohttp/resolver.py:12:1: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-import-not-found for more info
- aiohttp/pytest_plugin.py:24:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- aiohttp/pytest_plugin.py:24:1: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-import-not-found for more info

altair (https://github.com/vega/altair)
+ tools/markup.py:14: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ altair/vegalite/v6/api.py:3998: error: Argument "spec" to "FacetChart" has incompatible type "_EncodingMixin"; expected "SchemaBase | Mapping[str, Any] | UndefinedType"  [arg-type]
- altair/datasets/_data.py:18: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

zulip (https://github.com/zulip/zulip)
+ tools/linter_lib/custom_check.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ zerver/lib/db.py:5: note: Hint: "python3 -m pip install types-psycopg2"
+ zerver/lib/db.py:5: note: (or run "mypy --install-types" to install all missing stub packages)
+ zerver/lib/html_diff.py:2: note: Hint: "python3 -m pip install lxml-stubs"
+ zerver/data_import/slack_message_conversion.py:7: note: Hint: "python3 -m pip install types-regex"
- zerver/lib/markdown/__init__.py:20: note: Hint: "python3 -m pip install lxml-stubs"
- zerver/actions/presence.py:7: note: Hint: "python3 -m pip install types-psycopg2"
- zerver/actions/invites.py:14: note: (or run "mypy --install-types" to install all missing stub packages)
- zerver/actions/invites.py:14: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- zerver/data_import/microsoft_teams.py:13: note: Hint: "python3 -m pip install types-regex"

comtypes (https://github.com/enthought/comtypes)
+ comtypes/test/setup.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ comtypes/test/test_win32com_interop.py:11: note: Hint: "python3 -m pip install types-pywin32"
+ comtypes/test/test_win32com_interop.py:11: note: (or run "mypy --install-types" to install all missing stub packages)
- comtypes/test/TestComServer.py:34: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- comtypes/test/test_comserver.py:16: note: Hint: "python3 -m pip install types-pywin32"
- comtypes/test/test_comserver.py:16: note: (or run "mypy --install-types" to install all missing stub packages)

pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/lib/zig.py:84: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- pwndbg/aglib/onegadget.py:11: note: Hint: "python3 -m pip install types-tabulate"
- pwndbg/aglib/onegadget.py:11: note: (or run "mypy --install-types" to install all missing stub packages)
- pwndbg/aglib/onegadget.py:11: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ pwndbg/color/syntax_highlight.py:9: note: (or run "mypy --install-types" to install all missing stub packages)
- pwndbg/commands/attachp.py:81: note: Hint: "python3 -m pip install types-psutil"
+ pwndbg/commands/pwndbg_.py:37: note: Hint: "python3 -m pip install types-tabulate"
+ pwndbg/dbg_mod/gdb/__init__.py:1634: note: Hint: "python3 -m pip install types-psutil"

scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/_compression.py:12: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ scrapy/utils/display.py:40: note: (or run "mypy --install-types" to install all missing stub packages)
- scrapy/http/request/form.py:22: note: Hint: "python3 -m pip install lxml-stubs"
- scrapy/http/request/form.py:22: note: (or run "mypy --install-types" to install all missing stub packages)
+ scrapy/linkextractors/lxmlhtml.py:28: note: Hint: "python3 -m pip install lxml-stubs"
- scrapy/commands/__init__.py:15: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- tests/test_command_shell.py:10: note: Hint: "python3 -m pip install types-pexpect"
+ tests/test_crawler_subprocess.py:14: note: Hint: "python3 -m pip install types-pexpect"

Expression (https://github.com/cognitedata/Expression)
+ expression/core/result.py:30: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- expression/collections/block.py:33: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- tests/test_fn.py:13: error: Invalid "type: ignore" comment  [syntax]
+ tests/test_fn.py:13: error: Unused "type: ignore" comment  [unused-ignore]
- tests/test_catch.py:100: error: Invalid "type: ignore" comment  [syntax]
- tests/test_catch.py:100: error: Incompatible return value type (got "int", expected "str")  [return-value]
- tests/test_catch.py:100: error: Unsupported operand types for + ("int" and "str")  [operator]

antidote (https://github.com/Finistere/antidote)
+ setup.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/antidote/lib/interface_ext/__init__.py:1359: error: "staticmethod" expects 2 type arguments, but 1 given  [type-arg]
+ src/antidote/lib/interface_ext/__init__.py:1361: error: "staticmethod" expects 2 type arguments, but 1 given  [type-arg]
- src/antidote/lib/interface_ext/__init__.py:1359: error: Missing type arguments for generic type "staticmethod"  [type-arg]
+ src/antidote/lib/interface_ext/__init__.py:1361: error: Missing type arguments for generic type "staticmethod"  [type-arg]
- src/antidote/__init__.py:135: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

AutoSplit (https://github.com/Toufool/AutoSplit)
+ src/d3d11.py:50:15: error: Cannot determine type of "QueryInterface"  [has-type]
+ src/d3d11.py:53:19: error: Module has no attribute "WinError"  [attr-defined]
+ src/d3d11.py:58:9: error: Cannot determine type of "Release"  [has-type]
+ src/utils.py:20:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ src/capture_method/WindowsGraphicsCaptureMethod.py:75:20: error: Cannot determine type of "D3D11CreateDevice"  [has-type]
+ src/capture_method/BitBltCaptureMethod.py:57:17: error: Module has no attribute "windll"  [attr-defined]
- src/capture_method/BitBltCaptureMethod.py:13:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/capture_method/BitBltCaptureMethod.py:78:21: error: Name "image" is used before definition  [used-before-def]
- src/capture_method/BitBltCaptureMethod.py:81:13: error: Name "image" is used before definition  [used-before-def]
+ src/capture_method/DesktopDuplicationCaptureMethod.py:59:9: error: Cannot determine type of "_desktop_duplication"  [has-type]
+ src/capture_method/DesktopDuplicationCaptureMethod.py:61:28: error: Cannot determine type of "_desktop_duplication"  [has-type]
+ src/capture_method/DesktopDuplicationCaptureMethod.py:65:21: error: Cannot determine type of "_desktop_duplication"  [has-type]
+ src/capture_method/DesktopDuplicationCaptureMethod.py:66:21: error: Cannot determine type of "_desktop_duplication"  [has-type]
+ src/capture_method/DesktopDuplicationCaptureMethod.py:71:22: error: Cannot determine type of "_desktop_duplication"  [has-type]

egglog-python (https://github.com/egraphs-good/egglog-python)
+ python/egglog/builtins.py:259: error: Unused "type: ignore" comment  [unused-ignore]
+ python/egglog/builtins.py:266: error: Unused "type: ignore" comment  [unused-ignore]
+ python/egglog/builtins.py:370: error: Unused "type: ignore" comment  [unused-ignore]
+ python/egglog/builtins.py:377: error: Unused "type: ignore" comment  [unused-ignore]
+ python/egglog/builtins.py:840: error: Unused "type: ignore" comment  [unused-ignore]
+ python/egglog/builtins.py:847: error: Unused "type: ignore" comment  [unused-ignore]
+ python/egglog/builtins.py:967: error: Unused "type: ignore" comment  [unused-ignore]
+ python/egglog/builtins.py:973: error: Unused "type: ignore" comment  [unused-ignore]

django-stubs (https://github.com/typeddjango/django-stubs)
+ django-stubs/template/backends/jinja2.pyi:7: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- django-stubs/contrib/gis/db/backends/postgis/base.pyi:5: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

core (https://github.com/home-assistant/core)
- homeassistant/components/zwave_js/api.py:146: error: Parameter 1 of Literal[...] cannot be of type "Any"  [valid-type]
+ homeassistant/components/zwave_js/api.py:148: error: Parameter 1 of Literal[...] cannot be of type "Any"  [valid-type]

pip (https://github.com/pypa/pip)
+ src/pip/_internal/resolution/resolvelib/candidates.py:411: error: Incompatible types in assignment (expression has type "Version", variable has type "None")  [assignment]
+ src/pip/_internal/resolution/resolvelib/candidates.py:412: error: Incompatible return value type (got "None", expected "Version")  [return-value]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/commands/menu.py:422: error: Type argument "_UserCallbackSigT" of "MessageCommand" must be a subtype of "def (MessageContext, /, *Any, **Any) -> Coroutine[Any, Any, None]"  [type-var]
+ tanjun/commands/menu.py:422: error: Type argument "_UserCallbackSigT" of "SlashCommand" must be a subtype of "def (SlashContext, /, *Any, **Any) -> Coroutine[Any, Any, None]"  [type-var]
+ tanjun/commands/menu.py:424: error: Type argument "_MessageCallbackSigT" of "MessageCommand" must be a subtype of "def (MessageContext, /, *Any, **Any) -> Coroutine[Any, Any, None]"  [type-var]
+ tanjun/commands/menu.py:424: error: Type argument "_MessageCallbackSigT" of "SlashCommand" must be a subtype of "def (SlashContext, /, *Any, **Any) -> Coroutine[Any, Any, None]"  [type-var]
- tanjun/commands/menu.py:420: error: Type argument "_UserCallbackSigT" of "MessageCommand" must be a subtype of "def (MessageContext, /, *Any, **Any) -> Coroutine[Any, Any, None]"  [type-var]
- tanjun/commands/menu.py:420: error: Type argument "_UserCallbackSigT" of "SlashCommand" must be a subtype of "def (SlashContext, /, *Any, **Any) -> Coroutine[Any, Any, None]"  [type-var]
- tanjun/commands/menu.py:420: error: Type argument "_MessageCallbackSigT" of "MessageCommand" must be a subtype of "def (MessageContext, /, *Any, **Any) -> Coroutine[Any, Any, None]"  [type-var]
- tanjun/commands/menu.py:420: error: Type argument "_MessageCallbackSigT" of "SlashCommand" must be a subtype of "def (SlashContext, /, *Any, **Any) -> Coroutine[Any, Any, None]"  [type-var]

pandera (https://github.com/pandera-dev/pandera)
+ pandera/api/pandas/array.py:38: error: Unused "type: ignore" comment  [unused-ignore]

cwltool (https://github.com/common-workflow-language/cwltool)
+ setup.py:97:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- tests/test_http_input.py:7:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

artigraph (https://github.com/artigraph/artigraph)
+ src/arti/internal/dispatch.py:7: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/arti/fingerprints/__init__.py:11: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

werkzeug (https://github.com/pallets/werkzeug)
+ tests/conftest.py:18: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/werkzeug/_reloader.py:256: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

pydantic (https://github.com/pydantic/pydantic)
+ pydantic/v1/env_settings.py:330: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- pydantic/_internal/_core_utils.py:15: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

scipy (https://github.com/scipy/scipy)
+ scipy/_build_utils/_generate_blas_wrapper.py:31: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- scipy/_build_utils/tempita/_tempita.py:1041: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

yarl (https://github.com/aio-libs/yarl)
+ yarl/_url.py:426: error: Unused "type: ignore" comment  [unused-ignore]
+ yarl/_url.py:427: error: Unused "type: ignore" comment  [unused-ignore]
+ yarl/_url.py:428: error: Unused "type: ignore" comment  [unused-ignore]
+ yarl/_url.py:429: error: Unused "type: ignore" comment  [unused-ignore]

rich (https://github.com/Textualize/rich)
+ rich/_win32_console.py:383: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:393: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:402: error: Cannot determine type of "write"  [has-type]
+ rich/_win32_console.py:403: error: Cannot determine type of "flush"  [has-type]
+ rich/_win32_console.py:424: error: Cannot determine type of "ANSI_TO_WINDOWS"  [has-type]
+ rich/_win32_console.py:426: error: Cannot determine type of "_default_fore"  [has-type]
+ rich/_win32_console.py:431: error: Cannot determine type of "ANSI_TO_WINDOWS"  [has-type]
+ rich/_win32_console.py:433: error: Cannot determine type of "_default_back"  [has-type]
+ rich/_win32_console.py:439: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:442: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:442: error: Cannot determine type of "_default_text"  [has-type]
+ rich/_win32_console.py:452: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:461: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:464: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:465: error: Cannot determine type of "_default_attrs"  [has-type]
+ rich/_win32_console.py:475: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:478: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:479: error: Cannot determine type of "_default_attrs"  [has-type]
+ rich/_win32_console.py:488: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:490: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:490: error: Cannot determine type of "_default_attrs"  [has-type]
+ rich/_win32_console.py:497: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:507: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:523: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:533: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:544: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:551: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:557: error: Cannot determine type of "_handle"  [has-type]
+ rich/_win32_console.py:571: error: Cannot determine type of "_handle"  [has-type]

pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/create_package_index.py:5: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ pyodide-build/pyodide_build/xbuildenv_releases.py:239: note: Hint: "python3 -m pip install types-requests"
+ pyodide-build/pyodide_build/xbuildenv_releases.py:239: note: (or run "mypy --install-types" to install all missing stub packages)
- pyodide-build/pyodide_build/cli/build.py:10: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- pyodide-build/pyodide_build/cli/build.py:11: note: Hint: "python3 -m pip install types-requests"
- pyodide-build/pyodide_build/cli/build.py:11: note: (or run "mypy --install-types" to install all missing stub packages)

PyWinCtl (https://github.com/Kalmat/PyWinCtl)
+ src/pywinctl/_pywinctl_macos.py:553: error: Unused "type: ignore" comment  [unused-ignore]
+ src/pywinctl/_pywinctl_win.py:333: error: Unused "type: ignore" comment  [unused-ignore]
+ src/pywinctl/_pywinctl_win.py:822: error: Unused "type: ignore" comment  [unused-ignore]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ pandas-stubs/api/__init__.pyi:1: error: Module "pandas.api" has no attribute "extensions"  [attr-defined]
+ pandas-stubs/api/__init__.pyi:1: error: Module "pandas.api" has no attribute "indexers"  [attr-defined]
+ pandas-stubs/api/__init__.pyi:1: error: Module "pandas.api" has no attribute "interchange"  [attr-defined]
+ pandas-stubs/api/__init__.pyi:1: error: Module "pandas.api" has no attribute "types"  [attr-defined]
+ pandas-stubs/api/__init__.pyi:1: error: Module "pandas.api" has no attribute "typing"  [attr-defined]
+ pandas-stubs/io/__init__.pyi:1: error: Module "pandas.io" has no attribute "json"  [attr-defined]
+ pandas-stubs/io/__init__.pyi:1: error: Module "pandas.io" has no attribute "stata"  [attr-defined]
+ pandas-stubs/io/formats/__init__.pyi:1: error: Module "pandas.io.formats" has no attribute "style"  [attr-defined]
+ pandas-stubs/tseries/__init__.pyi:1: error: Module "pandas.tseries" has no attribute "frequencies"  [attr-defined]
+ pandas-stubs/tseries/__init__.pyi:1: error: Module "pandas.tseries" has no attribute "offsets"  [attr-defined]
+ pandas-stubs/__init__.pyi:1: error: Module "pandas" has no attribute "arrays"; maybe "array"?  [attr-defined]
+ pandas-stubs/__init__.pyi:1: error: Module "pandas" has no attribute "testing"  [attr-defined]
+ pandas-stubs/__init__.pyi:1: error: Module "pandas" has no attribute "util"  [attr-defined]
+ tests/test_timefuncs.py:946: error: Expression is of type "Any", not "Timestamp"  [assert-type]
+ tests/test_timefuncs.py:948: error: Expression is of type "Any", not "Timestamp"  [assert-type]
+ tests/test_timefuncs.py:994: error: Expression is of type "Any", not "DatetimeIndex"  [assert-type]
+ tests/test_dtypes.py:88: error: Expression is of type "BaseOffset", not "Any"  [assert-type]

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_eventloop.py:21: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/anyio/_backends/_asyncio.py:2240: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ pytest_robotframework/_internal/robot/utils.py:9: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- pytest_robotframework/__init__.py:18: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

sympy (https://github.com/sympy/sympy)
+ sympy/matrices/matrixbase.py:3309: error: Unused "type: ignore" comment  [unused-ignore]
- sympy/ntheory/tests/test_hypothesis.py:2: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ sympy/polys/tests/test_hypothesis.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

trio (https://github.com/python-trio/trio)
+ src/trio/_core/_io_windows.py:711: error: Unused "type: ignore" comment  [unused-ignore]
+ src/trio/_core/_io_windows.py:713: error: Unused "type: ignore" comment  [unused-ignore]
+ src/trio/_dtls.py:739: error: Incompatible types in assignment (expression has type "tuple[bytes, bytes]", variable has type "None")  [assignment]
+ src/trio/_core/_tests/test_run.py:2394: error: Argument 1 to "set" of "ContextVar" has incompatible type "str"; expected "None"  [arg-type]
+ src/trio/_core/_io_kqueue.py:168: error: Unused "type: ignore" comment  [unused-ignore]
+ src/trio/_tests/test_windows_pipes.py:33: error: Unused "type: ignore" comment  [unused-ignore]
+ src/trio/_tests/test_windows_pipes.py:35: error: Unused "type: ignore" comment  [unused-ignore]
+ src/trio/_subprocess_platform/kqueue.py:20: error: Unused "type: ignore" comment  [unused-ignore]

cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/bugs/test_gh671.py:8: note: Hint: "python3 -m pip install types-passlib"
+ tests/integration_tests/bugs/test_gh671.py:8: note: (or run "mypy --install-types" to install all missing stub packages)
+ tests/integration_tests/bugs/test_gh671.py:8: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- cloudinit/distros/netbsd.py:24: note: Hint: "python3 -m pip install types-passlib"
- cloudinit/distros/netbsd.py:24: note: (or run "mypy --install-types" to install all missing stub packages)
- cloudinit/distros/netbsd.py:24: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

bokeh (https://github.com/bokeh/bokeh)
+ release/ui.py:27:1: note: Hint: "python3 -m pip install types-colorama"
+ release/ui.py:27:1: note: (or run "mypy --install-types" to install all missing stub packages)
+ release/ui.py:27:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ src/bokeh/sampledata/sample_superstore.pyi:2:1: note: Hint: "python3 -m pip install pandas-stubs"
- src/bokeh/util/terminal.py:51:1: note: Hint: "python3 -m pip install types-colorama"
- src/bokeh/core/property/data_frame.py:30:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/bokeh/core/property/data_frame.py:32:1: note: Hint: "python3 -m pip install pandas-stubs"
- src/bokeh/core/property/data_frame.py:32:1: note: (or run "mypy --install-types" to install all missing stub packages)

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/scalability/endpoint/endpoint.py:13: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ misc/python/materialize/setup.py:16: note: (or run "mypy --install-types" to install all missing stub packages)
+ misc/python/stubs/docker/__init__.pyi:10: note: Hint: "python3 -m pip install types-docker"
- misc/python/materialize/benches/avro_ingest.py:22: note: Hint: "python3 -m pip install types-docker"
- misc/python/materialize/benches/avro_ingest.py:22: note: (or run "mypy --install-types" to install all missing stub packages)
- misc/python/materialize/benches/avro_ingest.py:22: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ cki_lib/psql.py:2: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ cki_lib/psql.py:3: note: (or run "mypy --install-types" to install all missing stub packages)
- cki_lib/kcidb/validate.py:12: note: Hint: "python3 -m pip install types-jsonschema"
- cki_lib/kcidb/validate.py:12: note: (or run "mypy --install-types" to install all missing stub packages)
+ cki_lib/misc.py:24: note: Hint: "python3 -m pip install types-python-dateutil"
+ cki_lib/yaml.py:14: note: Hint: "python3 -m pip install types-jsonschema"
- cki_lib/inttests/cluster.py:24: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- cki_lib/krb_ticket_refresher.py:8: note: Hint: "python3 -m pip install types-python-dateutil"

build (https://github.com/pypa/build)
+ tests/test_self_packaging.py:12: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/build/__main__.py:131: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

cryptography (https://github.com/pyca/cryptography)
+ tests/utils.py:17: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- src/cryptography/hazmat/primitives/serialization/ssh.py:43: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

xarray (https://github.com/pydata/xarray)
+ xarray/tests/test_error_messages.py:7: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ xarray/backends/scipy_.py: note: In member "__init__" of class "ScipyDataStore":
+ xarray/backends/scipy_.py:275: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]
+ xarray/backends/scipy_.py: note: At top level:
- xarray/backends/api.py:55: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

jax (https://github.com/google/jax)
+ jax/_src/export/serialization_generated.py:21: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ jax/version.py:125: note: (or run "mypy --install-types" to install all missing stub packages)
+ jax/_src/array.py:414: error: No overload variant of "asarray" matches argument types "Any", "dtype[Any] | None", "dict[str, bool]"  [call-overload]
- jax/_src/clusters/k8s_cluster.py:74: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- jax/_src/array.py:414: error: No overload variant of "asarray" matches argument types "ndarray[tuple[Any, ...], dtype[Any]]", "dtype[Any] | None", "dict[str, bool]"  [call-overload]
- jax/_src/debugger/colab_debugger.py:30: note: (or run "mypy --install-types" to install all missing stub packages)
+ jax/experimental/jax2tf/jax2tf.py:52: note: Hint: "python3 -m pip install types-tensorflow"
- jax/experimental/jax2tf/examples/serving/model_server_request.py:29: note: Hint: "python3 -m pip install types-tensorflow"

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ release/release.py:33: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]

dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ docs/conf.py:318: error: Need type annotation for "latex_elements" (hint: "latex_elements: dict[<type>, <type>] = ...")  [var-annotated]

ibis (https://github.com/ibis-project/ibis)
- ibis/selectors.py:434: error: Variable "ibis.common.collections.frozendict" is not valid as a type  [valid-type]
- ibis/selectors.py:434: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- ibis/expr/types/generic.py:152: error: Function "ibis.expr.types.generic.Value.type" is not valid as a type  [valid-type]
+ ibis/expr/types/generic.py:164: error: Function "ibis.expr.types.generic.Value.type" is not valid as a type  [valid-type]
- ibis/expr/types/generic.py:152: note: Perhaps you need "Callable[...]" or a callback protocol?
+ ibis/expr/types/generic.py:164: note: Perhaps you need "Callable[...]" or a callback protocol?
- ibis/expr/types/generic.py:170: error: Function "ibis.expr.types.generic.Value.type" is not valid as a type  [valid-type]
+ ibis/expr/types/generic.py:171: error: Function "ibis.expr.types.generic.Value.type" is not valid as a type  [valid-type]
- ibis/expr/types/generic.py:170: note: Perhaps you need "Callable[...]" or a callback protocol?
+ ibis/expr/types/generic.py:171: note: Perhaps you need "Callable[...]" or a callback protocol?
- ibis/expr/types/temporal.py:428: error: "Value" expects no type arguments, but 1 given  [type-arg]
- ibis/expr/types/temporal.py:1161: error: "Value" expects no type arguments, but 1 given  [type-arg]
+ ibis/expr/types/temporal.py:431: error: "Value" expects no type arguments, but 1 given  [type-arg]
+ ibis/expr/types/temporal.py:1174: error: "Value" expects no type arguments, but 1 given  [type-arg]
+ ibis/selectors.py:437: error: Variable "ibis.common.collections.frozendict" is not valid as a type  [valid-type]
+ ibis/selectors.py:437: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases

alerta (https://github.com/alerta/alerta)
+ alerta/settings.py:84: error: Need type annotation for "HMAC_AUTH_CREDENTIALS" (hint: "HMAC_AUTH_CREDENTIALS: list[<type>] = ...")  [var-annotated]
+ alerta/settings.py:123: error: Need type annotation for "LDAP_DOMAINS" (hint: "LDAP_DOMAINS: dict[<type>, <type>] = ...")  [var-annotated]
+ alerta/settings.py:287: error: Need type annotation for "FWD_DESTINATIONS" (hint: "FWD_DESTINATIONS: list[<type>] = ...")  [var-annotated]
+ alerta/utils/mailer.py:64: error: Incompatible types in assignment (expression has type "SMTP", variable has type "SMTP_SSL")  [assignment]

speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/services/cached_requests.py:7: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- backend/api/core_api.py:9: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

stone (https://github.com/dropbox/stone)
+ stone/cli_helpers.py:18: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str]", variable has type "tuple[str, str, str]")  [assignment]
+ stone/cli_helpers.py:24: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str]", variable has type "tuple[str, str, str]")  [assignment]
+ stone/cli_helpers.py:30: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str, str, str, str]", variable has type "tuple[str, str, str]")  [assignment]
+ stone/frontend/lexer.py:104: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str, str, str]", variable has type "tuple[str, str, str, str]")  [assignment]
+ stone/frontend/lexer.py:111: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str, str, str, str]", variable has type "tuple[str, str, str, str]")  [assignment]
+ stone/frontend/lexer.py:119: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str, str, str, str, str]", variable has type "tuple[str, str, str, str]")  [assignment]
+ stone/frontend/lexer.py:128: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str, str]", variable has type "tuple[str, str, str, str]")  [assignment]
+ stone/frontend/lexer.py:134: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str, str, str]", variable has type "tuple[str, str, str, str]")  [assignment]
+ stone/frontend/lexer.py:140: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str]", variable has type "tuple[str, str, str, str]")  [assignment]
+ stone/frontend/lexer.py:145: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str]", variable has type "tuple[str, str, str, str]")  [assignment]
+ stone/frontend/lexer.py:198: error: Incompatible types in assignment (expression has type "tuple[str, ...]", variable has type "tuple[str, str, str, str]")  [assignment]
+ stone/backends/python_type_stubs.py:442: error: Incompatible return value type (got "dict[type, Callable[[ApiNamespace, DataType, dict[type[DataType], Callable[[ApiNamespace, DataType, dict[Any, Any]], str]]], str]]", expected "dict[type[DataType], Callable[[ApiNamespace, DataType, dict[Any, Any]], str]]")  [return-value]
+ stone/backends/python_type_stubs.py:442: note: Perhaps you need a type annotation for "callback_dict"? Suggestion: "dict[type[DataType], Callable[[ApiNamespace, DataType, dict[Any, Any]], str]]"

schema_salad (https://github.com/common-workflow-language/schema_salad)
+ schema_salad/tests/test_makedoc.py:22:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- schema_salad/tests/conftest.py:1:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

git-revise (https://github.com/mystor/git-revise)
+ gitrevise/odb.py:413: error: Redundant cast to "bytes"  [redundant-cast]

starlette (https://github.com/encode/starlette)
+ tests/test_status.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- starlette/middleware/sessions.py:9: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/util/images.py:16:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ sphinx/pygments_styles.py:6:1: note: Hint: "python3 -m pip install types-Pygments"
+ sphinx/pygments_styles.py:6:1: note: (or run "mypy --install-types" to install all missing stub packages)
- sphinx/_cli/util/errors.py:102:1: note: Hint: "python3 -m pip install types-Pygments"
- sphinx/_cli/util/errors.py:102:1: note: (or run "mypy --install-types" to install all missing stub packages)
- sphinx/_cli/util/errors.py:102:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/display_color.py:271: error: Incompatible types in assignment (expression has type "dict[int, int]", variable has type "None")  [assignment]
+ static_frame/core/display_color.py:274: error: "None" has no attribute "items"  [attr-defined]
+ static_frame/core/frame.py:7140: error: Unused "type: ignore" comment  [unused-ignore]
+ static_frame/core/frame.py:7141: error: Need type annotation for "name"  [var-annotated]
+ static_frame/core/frame.py:7383: error: Unused "type: ignore" comment  [unused-ignore]
+ static_frame/core/frame.py:7384: error: Need type annotation for "name"  [var-annotated]

apprise (https://github.com/caronc/apprise)
+ setup.py:38: note: (or run "mypy --install-types" to install all missing stub packages)
+ setup.py:38: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- apprise/config/base.py:34: note: (or run "mypy --install-types" to install all missing stub packages)
- apprise/config/base.py:34: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ apprise/plugins/fluxer.py:513: error: Unsupported operand types for + ("str" and "bool")  [operator]
+ apprise/plugins/fluxer.py:513: note: Right operand is of type "bool | str"
+ apprise/plugins/fluxer.py:513: error: Incompatible types in assignment (expression has type "Any | str", target has type "bool")  [assignment]
- apprise/plugins/fluxer.py:512: error: Unsupported operand types for + ("str" and "bool")  [operator]
- apprise/plugins/fluxer.py:512: note: Right operand is of type "bool | str"
- apprise/plugins/fluxer.py:512: error: Incompatible types in assignment (expression has type "Any | str", target has type "bool")  [assignment]

scipy-stubs (https://github.com/scipy/scipy-stubs)
+ scipy-stubs/cluster/__init__.pyi:1: error: Module "scipy.cluster" has no attribute "hierarchy"  [attr-defined]
+ scipy-stubs/cluster/__init__.pyi:1: error: Module "scipy.cluster" has no attribute "vq"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "base"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "bsr"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "compressed"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "construct"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "coo"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "csc"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "csgraph"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "csr"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "dia"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "dok"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "extract"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "lil"  [attr-defined]
+ scipy-stubs/sparse/__init__.pyi:1: error: Module "scipy.sparse" has no attribute "linalg"  [attr-defined]
+ scipy-stubs/special/_testutils.pyi:10: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- tests/cluster/test_vq.pyi:18: error: Module has no attribute "whiten"  [attr-defined]
- tests/cluster/test_vq.pyi:19: error: Module has no attribute "whiten"  [attr-defined]
- tests/cluster/test_vq.pyi:20: error: Module has no attribute "whiten"  [attr-defined]
- tests/cluster/test_vq.pyi:24: error: Module has no attribute "vq"  [attr-defined]
- tests/cluster/test_vq.pyi:24: note: Error code "attr-defined" not covered by "type: ignore[arg-type]" comment
- tests/cluster/test_vq.pyi:25: error: Module has no attribute "vq"  [attr-defined]
- tests/cluster/test_vq.pyi:26: error: Module has no attribute "vq"  [attr-defined]
- tests/cluster/test_vq.pyi:27: error: Module has no attribute "vq"  [attr-defined]
- tests/cluster/test_vq.pyi:29: error: Module has no attribute "vq"  [attr-defined]
- tests/cluster/test_vq.pyi:29: note: Error code "attr-defined" not covered by "type: ignore[arg-type]" comment
- tests/cluster/test_vq.pyi:32: error: Module has no attribute "py_vq"  [attr-defined]
- tests/cluster/test_vq.pyi:33: error: Module has no attribute "py_vq"  [attr-defined]
- tests/cluster/test_vq.pyi:34: error: Module has no attribute "py_vq"  [attr-defined]
- tests/cluster/test_vq.pyi:35: error: Module has no attribute "py_vq"  [attr-defined]
- tests/cluster/test_vq.pyi:37: error: Module has no attribute "py_vq"  [attr-defined]
- tests/cluster/test_vq.pyi:37: note: Error code "attr-defined" not covered by "type: ignore[arg-type]" comment
- tests/cluster/test_vq.pyi:41: error: Module has no attribute "kmeans"  [attr-defined]
- tests/cluster/test_vq.pyi:41: note: Error code "attr-defined" not covered by "type: ignore[arg-type]" comment
- tests/cluster/test_vq.pyi:42: error: Module has no attribute "kmeans"  [attr-defined]
- tests/cluster/test_vq.pyi:43: error: Module has no attribute "kmeans"  [attr-defined]
- tests/cluster/test_vq.pyi:44: error: Module has no attribute "kmeans"  [attr-defined]
- tests/cluster/test_vq.pyi:46: error: Module has no attribute "kmeans"  [attr-defined]
- tests/cluster/test_vq.pyi:46: note: Error code "attr-defined" not covered by "type: ignore[arg-type]" comment
- tests/cluster/test_vq.pyi:50: error: Module has no attribute "kmeans2"  [attr-defined]
- tests/cluster/test_vq.pyi:50: note: Error code "attr-defined" not covered by "type: ignore[arg-type]" comment
- tests/cluster/test_vq.pyi:51: error: Module has no attribute "kmeans2"  [attr-defined]
- tests/cluster/test_vq.pyi:52: error: Module has no attribute "kmeans2"  [attr-defined]
- tests/cluster/test_vq.pyi:53: error: Module has no attribute "kmeans2"  [attr-defined]
- tests/cluster/test_vq.pyi:55: error: Module has no attribute "kmeans2"  [attr-defined]
- tests/cluster/test_vq.pyi:55: note: Error code "attr-defined" not covered by "type: ignore[arg-type]" comment
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "datasets"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "differentiate"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "fftpack"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "integrate"; maybe "interpolate"?  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "interpolate"; maybe "integrate"?  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "io"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "linalg"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "odr"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "optimize"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "signal"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "spatial"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "special"  [attr-defined]
+ scipy-stubs/__init__.pyi:6: error: Module "scipy" has no attribute "stats"  [attr-defined]
+ tests/datasets/test_utils.pyi:6: error: Expression is of type "Any", not "None"  [assert-type]
+ tests/datasets/test_utils.pyi:9: error: Expression is of type "Any", not "None"  [assert-type]
+ tests/datasets/test_utils.pyi:10: error: Expression is of type "Any", not "None"  [assert-type]
+ tests/datasets/test_utils.pyi:11: error: Expression is of type "Any", not "None"  [assert-type]
+ tests/datasets/test_utils.pyi:14: error: Expression is of type "Any", not "None"  [assert-type]

... (truncated 57 lines) ...```

@ilevkivskyi
Copy link
Copy Markdown
Member Author

ilevkivskyi commented Apr 25, 2026

I also have repro for pandas-stubs and scipy-stubs issues as a cmdline test:

[case testFooBar]
# cmd: mypy foo-stubs --num-workers=4
[file foo-stubs/__init__.pyi]
[file foo-stubs/api/__init__.pyi]
from foo.api import bar as bar
[file foo-stubs/api/bar.pyi]

It works with --num-workers=0, but with 4 workers it now gives

foo-stubs/api/__init__.pyi:1: error: Module "foo.api" has no attribute "bar"

@ilevkivskyi
Copy link
Copy Markdown
Member Author

OK, all items found so far are submitted as individual PRs. I will try again when those are all merged. I will also separately try native parser.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant