Skip to content

Preserve Any across indexed assignments - #4509

Open
cakeni wants to merge 1 commit into
facebook:mainfrom
cakeni:fix/any-index-assignment-narrowing
Open

Preserve Any across indexed assignments#4509
cakeni wants to merge 1 commit into
facebook:mainfrom
cakeni:fix/any-index-assignment-narrowing

Conversation

@cakeni

@cakeni cakeni commented Aug 11, 2026

Copy link
Copy Markdown

Summary

Prevent indexed assignment from narrowing a receiver typed as Any. The assigned value cannot safely determine the type returned by a later indexed access because Any may implement asymmetric __setitem__ and __getitem__ behavior.

Add a regression test that assigns a list[float] through an Any receiver and verifies that the subsequent indexed access remains Any.

Fixes #4488

Test Plan

  • python test.py --no-test --no-tensor-shapes --no-conformance --no-jsonschema (formatting passed; local lint compilation is blocked by the installed MinGW headers while building mimalloc)
  • GitHub Actions on the fork branch is in progress with no failures reported at PR creation time

@meta-cla meta-cla Bot added the cla signed label Aug 11, 2026
@cakeni
cakeni marked this pull request as ready for review August 11, 2026 13:30
@meta-codesync

meta-codesync Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D115572117. (Because this pull request was imported automatically, there will not be any future comments.)

@github-actions

Copy link
Copy Markdown

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

openlibrary (https://github.com/internetarchive/openlibrary)
- ERROR openlibrary/core/fulltext.py:72:62-64: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/core/models.py:80:31-42: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/openlibrary/api.py:907:16-38: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/upstream/mybooks.py:630:60-73: Argument `Work | None` is not assignable to parameter `work` with type `Work` in function `PatronBooknotes._get_work_details` [bad-argument-type]
- ERROR openlibrary/plugins/upstream/mybooks.py:641:60-73: Argument `Work | None` is not assignable to parameter `work` with type `Work` in function `PatronBooknotes._get_work_details` [bad-argument-type]

cloud-init (https://github.com/canonical/cloud-init)
- ERROR cloudinit/config/cc_resolv_conf.py:65:29-31: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR cloudinit/net/sysconfig.py:431:24-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/net/sysconfig.py:452:24-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/net/sysconfig.py:470:24-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/net/sysconfig.py:481:32-54: The type of `bootproto_in` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR cloudinit/net/sysconfig.py:486:24-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/sources/DataSourceNoCloud.py:205:14-37: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
+ ERROR cloudinit/sources/DataSourceNoCloud.py:215:25-44: `dict[Unknown, Unknown] | str | Unknown | None` is not assignable to attribute `metadata` with type `dict[Unknown, Unknown]` [bad-assignment]
+ ERROR cloudinit/sources/DataSourceNoCloud.py:219:29-52: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
- ERROR cloudinit/util.py:3108:33-35: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/integration_tests/test_networking.py:244:57-59: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/unittests/config/test_cc_zypper_add_repo.py:140:57-61: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
- ERROR mitmproxy/io/compat.py:246:52-54: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR mitmproxy/io/compat.py:251:54-56: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ ERROR cki_lib/kcidb/validate.py:71:40-56: The type of this argument is unknown [unknown-argument-type]
+ ERROR cki_lib/kcidb/validate.py:72:45-61: The type of `max_result_status` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]

rotki (https://github.com/rotki/rotki)
- ERROR rotkehlchen/db/unresolved_conflicts.py:109:43-45: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/mcp/analytics.py:464:30-49: Object of class `list` has no attribute `isna` [missing-attribute]

bokeh (https://github.com/bokeh/bokeh)
- ERROR src/bokeh/themes/theme.py:172:35-37: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

spark (https://github.com/apache/spark)
- ERROR python/pyspark/ml/connect/pipeline.py:52:30-32: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

alerta (https://github.com/alerta/alerta)
+ ERROR alerta/auth/github.py:85:46-70: The type of this argument is unknown [unknown-argument-type]
+ ERROR alerta/auth/github.py:97:80-103: The type of this argument is unknown [unknown-argument-type]
+ ERROR alerta/auth/github.py:97:105-134: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:857:30-55: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:858:30-52: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:859:30-58: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:860:30-55: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:861:30-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:862:30-54: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:863:30-52: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:864:30-52: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:865:30-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:866:30-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:876:41-68: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:877:30-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:878:30-54: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_webhooks.py:879:30-55: The type of this argument is unknown [unknown-argument-type]

altair (https://github.com/vega/altair)
+ ERROR altair/utils/core.py:691:33-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR altair/utils/core.py:692:33-49: The type of this argument is unknown [unknown-argument-type]

prefect (https://github.com/PrefectHQ/prefect)
- ERROR src/integrations/prefect-azure/prefect_azure/workers/container_instance.py:353:27-29: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:506:35-37: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:514:45-47: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker.py:421:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker.py:440:25-27: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker.py:441:65-67: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker.py:471:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker.py:519:18-76: The type of `labels` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker.py:535:18-76: The type of `labels` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker.py:564:18-76: The type of `labels` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker_v2.py:294:72-74: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker_v2.py:302:20-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker_v2.py:309:20-61: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker_v2.py:488:18-67: The type of `labels` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker_v2.py:504:18-67: The type of `labels` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/integrations/prefect-gcp/tests/test_cloud_run_worker_v2.py:531:18-67: The type of `labels` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR src/integrations/prefect-gcp/tests/test_vertex_worker.py:63:62-64: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/worker.py:311:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/worker.py:315:55-57: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/worker.py:319:50-52: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1467:57-59: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1486:25-27: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1487:43-45: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1509:36-38: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1519:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1554:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1584:27-29: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1595:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1706:36-38: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:1716:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-kubernetes/tests/test_worker.py:3911:52-54: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/_internal/result_records.py:179:37-39: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/deploy/_config.py:248:46-48: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/deploy/_config.py:255:67-69: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/deploy/_config.py:262:46-48: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/deploy/_config.py:286:47-49: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/deploy/_core.py:166:42-44: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/dev.py:79:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/utilities/schemas/bases.py:183:34-36: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ ERROR sklearn/linear_model/_least_angle.py:740:55-61: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/tests/test_docstrings.py:162:8-21: Implicit conversion of `list[tuple[Unknown, Unknown]]` to `bool` is not allowed [implicit-bool]
- ERROR sklearn/tests/test_docstrings.py:182:8-21: Implicit conversion of `list[tuple[Unknown, Unknown]]` to `bool` is not allowed [implicit-bool]
- ERROR sklearn/tests/test_docstrings.py:213:8-21: Implicit conversion of `list[tuple[Unknown, Unknown]]` to `bool` is not allowed [implicit-bool]

materialize (https://github.com/MaterializeInc/materialize)
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:707:36-38: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:716:45-51: The type of this argument is unknown [unknown-argument-type]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:729:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:738:50-56: The type of this argument is unknown [unknown-argument-type]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:741:42-44: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:749:44-46: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:758:53-59: The type of this argument is unknown [unknown-argument-type]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:770:29-34: The type of this argument is unknown [unknown-argument-type]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:777:35-37: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:784:44-50: The type of this argument is unknown [unknown-argument-type]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:791:33-35: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/cli/mz_workload_anonymize.py:798:42-48: The type of this argument is unknown [unknown-argument-type]
- ERROR misc/python/materialize/mzcompose/composition.py:1235:42-44: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/workload_replay/executor.py:250:39-41: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

freqtrade (https://github.com/freqtrade/freqtrade)
- ERROR freqtrade/configuration/configuration.py:88:35-37: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR freqtrade/configuration/configuration.py:200:52-54: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

setuptools (https://github.com/pypa/setuptools)
- ERROR setuptools/_distutils/tests/test_archive_util.py:238:44-46: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

comtypes (https://github.com/enthought/comtypes)
+ ERROR comtypes/test/test_classfactory.py:40:26-41: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_client_dynamic.py:50:26-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR comtypes/test/test_client_dynamic.py:98:26-39: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_comserver.py:287:26-42: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_comserver.py:289:26-41: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_comserver.py:299:26-39: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_dict.py:67:26-39: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_dict.py:69:26-36: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_dict.py:82:26-42: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_dict.py:84:26-41: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]
+ ERROR comtypes/test/test_dict.py:94:26-39: `(*args: Unknown) -> Unknown` is not subscriptable [unsupported-operation]

apprise (https://github.com/caronc/apprise)
+ ERROR apprise/cli.py:949:36-65: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/config/base.py:1399:20-31: Implicit conversion of `list[object | Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/config/base.py:1399:20-31: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/sparkpost.py:456:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/test_plugin_matrix.py:1407:28-30: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/test_plugin_matrix.py:1449:33-35: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

manticore (https://github.com/trailofbits/manticore)
+ ERROR tests/native/test_linux.py:425:25-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/native/test_manticore.py:67:26-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/native/test_manticore.py:123:26-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/native/test_manticore.py:155:26-45: The type of this argument is unknown [unknown-argument-type]

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ ERROR bson/json_util.py:566:19-31: The type of this argument is unknown [unknown-argument-type]
+ ERROR bson/json_util.py:568:23-39: The type of this argument is unknown [unknown-argument-type]

starlette (https://github.com/encode/starlette)
- ERROR tests/test_requests.py:508:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/test_requests.py:551:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

streamlit (https://github.com/streamlit/streamlit)
- ERROR lib/streamlit/elements/arrow.py:325:52-54: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/streamlit/elements/arrow.py:328:55-57: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/streamlit/elements/arrow.py:331:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/dataframe_util_test.py:1011:30-34: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR lib/tests/streamlit/elements/arrow_dataframe_test.py:1337:75-76: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR lib/tests/streamlit/elements/arrow_dataframe_test.py:1430:55-57: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/elements/arrow_dataframe_test.py:1430:68-70: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/elements/chat_test.py:928:30-32: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/elements/data_editor_test.py:304:37-39: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/elements/plotly_chart_test.py:747:31-33: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/elements/pydeck_test.py:695:35-37: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/elements/vega_charts_test.py:84:31-33: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/runtime/state/query_params_test.py:79:44-47: Comparison `==` between incompatible types `Literal[1]` and `Literal['1']` [incompatible-comparison]
- ERROR lib/tests/streamlit/runtime/state/query_params_test.py:85:46-52: Comparison `==` between incompatible types `float` and `Literal['1.23']` [incompatible-comparison]
- ERROR lib/tests/streamlit/runtime/state/query_params_test.py:117:45-48: Comparison `==` between incompatible types `set[int]` and `Literal['3']` [incompatible-comparison]
- ERROR scripts/sync_vscode_devcontainer.py:154:63-65: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

stone (https://github.com/dropbox/stone)
- ERROR stone/frontend/parser.py:122:16-18: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR stone/frontend/parser.py:179:38-42: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:265:25-27: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR stone/frontend/parser.py:267:31-33: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR stone/frontend/parser.py:269:21-23: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR stone/frontend/parser.py:269:25-27: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR stone/frontend/parser.py:429:20-22: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR stone/frontend/parser.py:461:34-38: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:463:34-38: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:465:26-30: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:570:38-42: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:573:30-34: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:594:26-30: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:602:32-36: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:713:18-28: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:713:32-36: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/parser.py:783:20-22: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR stone/frontend/parser.py:844:20-22: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

zulip (https://github.com/zulip/zulip)
- ERROR zerver/data_import/mattermost.py:1055:21-23: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR zerver/data_import/mattermost.py:1061:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR zerver/lib/events.py:1206:42-44: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR zerver/lib/events.py:1395:50-52: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR zerver/tests/test_import_export.py:2487:49-51: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR zerver/tests/test_slack_importer.py:3660:25-83: The type of this argument is unknown [unknown-argument-type]
- ERROR zerver/webhooks/gong/tests.py:82:42-44: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR zproject/jinja2/__init__.py:51:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

dragonchain (https://github.com/dragonchain/dragonchain)
- ERROR dragonchain/webserver/lib/smart_contracts_utest.py:33:105-107: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ERROR ddtrace/contrib/internal/anthropic/_streaming.py:218:89-91: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR ddtrace/contrib/internal/anthropic/_streaming.py:251:28-30: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR ddtrace/contrib/internal/anthropic/_streaming.py:253:40-56: The type of this argument is unknown [unknown-argument-type]
- ERROR ddtrace/contrib/internal/anthropic/_streaming.py:255:43-62: The type of this argument is unknown [unknown-argument-type]
- ERROR ddtrace/contrib/internal/botocore/utils.py:79:30-32: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR ddtrace/contrib/internal/unittest/patch.py:92:50-52: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR ddtrace/contrib/internal/unittest/patch.py:94:51-53: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR ddtrace/internal/datastreams/botocore.py:113:39-41: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR ddtrace/llmobs/_integrations/utils.py:1166:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR ddtrace/sourcecode/setuptools_auto.py:22:34-36: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

pandas (https://github.com/pandas-dev/pandas)
- ERROR pandas/tests/frame/indexing/test_indexing.py:77:41-51: Object of class `ndarray` has no attribute `values` [missing-attribute]
+ ERROR pandas/tests/frame/indexing/test_indexing.py:76:15-36: The type of `res` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/frame/indexing/test_indexing.py:77:41-51: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/frame/indexing/test_indexing.py:184:19-33: Object of class `int` has no attribute `astype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:187:19-33: Object of class `int` has no attribute `astype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:311:16-46: Object of class `bool` has no attribute `all` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:314:16-49: Object of class `bool` has no attribute `all` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:317:16-50: Object of class `bool` has no attribute `all` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:326:20-42: Object of class `list` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:328:20-42: Object of class `list` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:329:16-52: Object of class `bool` has no attribute `all` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:402:16-38: Object of class `int` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:410:16-40: Object of class `int` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:414:16-40: Object of class `float` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:417:16-46: Object of class `int` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:419:16-46: Object of class `int` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:421:16-46: Object of class `float` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:985:27-49: Object of class `int` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/indexing/test_indexing.py:1083:16-36: Object of class `bool` has no attribute `all` [missing-attribute]
+ ERROR pandas/tests/frame/indexing/test_setitem.py:673:18-39: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR pandas/tests/frame/indexing/test_setitem.py:675:32-38: Argument `list[tuple[Unknown, Unknown]]` is not assignable to parameter `left` with type `Series` in function `pandas._testing.asserters.assert_series_equal` [bad-argument-type]
+ ERROR pandas/tests/frame/indexing/test_setitem.py:675:32-38: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/frame/test_alter_axes.py:31:32-49: Argument `Literal['there']` is not assignable to parameter `left` with type `Series` in function `pandas._testing.asserters.assert_series_equal` [bad-argument-type]
+ ERROR pandas/tests/frame/test_alter_axes.py:31:32-49: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/frame/test_block_internals.py:87:16-48: Object of class `bool` has no attribute `all` [missing-attribute]
- ERROR pandas/tests/frame/test_block_internals.py:169:16-52: Object of class `datetime` has no attribute `dtype` [missing-attribute]
- ERROR pandas/tests/frame/test_block_internals.py:170:16-53: Object of class `timedelta` has no attribute `dtype` [missing-attribute]
+ ERROR pandas/tests/frame/test_block_internals.py:328:32-43: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/groupby/test_reductions.py:1629:24-26: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR pandas/tests/io/pytables/test_put.py:186:28-38: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_put.py:189:27-37: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_put.py:199:28-38: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_put.py:202:27-37: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_round_trip.py:473:13-31: The type of `right` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_round_trip.py:474:34-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_store.py:534:31-41: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_store.py:647:14-36: The type of `recons` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_store.py:648:27-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_store.py:707:28-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_store.py:1051:27-46: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/io/pytables/test_time_series.py:37:12-29: Object of class `Index` has no attribute `freq` [missing-attribute]
+ ERROR pandas/tests/io/pytables/test_time_series.py:34:14-32: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_time_series.py:36:28-34: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/io/pytables/test_time_series.py:46:12-29: Object of class `Index` has no attribute `freq` [missing-attribute]
+ ERROR pandas/tests/io/pytables/test_time_series.py:38:27-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_time_series.py:43:14-32: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_time_series.py:45:28-34: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_time_series.py:47:27-39: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/io/pytables/test_time_series.py:58:12-29: Object of class `Index` has no attribute `freq` [missing-attribute]
+ ERROR pandas/tests/io/pytables/test_time_series.py:55:14-32: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_time_series.py:57:27-33: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/io/pytables/test_time_series.py:67:12-29: Object of class `Index` has no attribute `freq` [missing-attribute]
+ ERROR pandas/tests/io/pytables/test_time_series.py:59:27-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_time_series.py:64:14-32: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_time_series.py:66:27-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_time_series.py:68:27-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:218:14-33: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:219:27-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:236:14-33: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:237:27-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:250:14-34: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:251:21-27: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:261:14-32: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:262:28-34: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/io/pytables/test_timezones.py:274:22-37: Object of class `Index` has no attribute `tz` [missing-attribute]
+ ERROR pandas/tests/io/pytables/test_timezones.py:272:14-36: The type of `recons` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:273:27-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:287:14-35: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:288:27-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:297:18-39: The type of `result` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/io/pytables/test_timezones.py:299:27-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/tests/series/indexing/test_indexing.py:190:21-44: The type of this argument is unknown [unknown-argument-type]

meson (https://github.com/mesonbuild/meson)
- ERROR mesonbuild/rewriter.py:492:51-53: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR unittests/allplatformstests.py:4094:29-31: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR unittests/allplatformstests.py:4095:31-33: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR unittests/allplatformstests.py:4097:38-40: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

pyodide (https://github.com/pyodide/pyodide)
- ERROR src/tests/test_package_loading.py:768:24-26: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/tests/test_package_loading.py:772:24-26: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/tests/test_package_loading.py:835:24-26: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/tests/test_package_loading.py:839:24-26: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/tests/test_package_loading.py:871:24-26: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/tests/test_package_loading.py:875:24-26: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

core (https://github.com/home-assistant/core)
- ERROR homeassistant/components/airvisual_pro/coordinator.py:63:31-33: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/alexa/state_report.py:223:69-80: Cannot set item in `dict[str, dict[str, str | None]]` [unsupported-operation]
+ ERROR homeassistant/components/anthropic/entity.py:1092:46-47: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR homeassistant/components/backup/store.py:59:44-46: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/backup/store.py:62:58-60: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/backup/store.py:86:47-49: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/backup/store.py:87:48-50: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/device_automation/__init__.py:319:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/habitica/services.py:803:35-37: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/habitica/services.py:807:36-38: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR homeassistant/components/modbus/validators.py:478:17-34: The type of this argument is unknown [unknown-argument-type]
- ERROR homeassistant/components/mysensors/__init__.py:45:46-48: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/myuplink/diagnostics.py:23:46-48: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/slide/__init__.py:144:33-35: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/steamist/__init__.py:35:30-32: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/stream/__init__.py:274:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/stream/__init__.py:275:39-41: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/components/tuya/diagnostics.py:99:25-27: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/config.py:256:38-40: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/config_entries.py:2110:47-49: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/helpers/entity_registry.py:823:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/helpers/entity_registry.py:852:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/helpers/entity_registry.py:866:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/helpers/entity_registry.py:871:44-46: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/helpers/entity_registry.py:896:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/helpers/entity_registry.py:898:44-46: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/helpers/entity_registry.py:903:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR homeassistant/helpers/entity_registry.py:905:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

trio (https://github.com/python-trio/trio)
- ERROR src/trio/_tests/check_type_completeness.py:214:33-35: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR src/trio/_tests/check_type_completeness.py:219:13-48: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]

paasta (https://github.com/yelp/paasta)
- ERROR paasta_tools/kubernetes_tools.py:4421:26-28: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR paasta_tools/kubernetes_tools.py:4423:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR paasta_tools/setup_kubernetes_crd.py:118:34-36: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

sphinx (https://github.com/sphinx-doc/sphinx)
- ERROR sphinx/jinja2glue.py:89:39-41: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

xarray (https://github.com/pydata/xarray)
- ERROR xarray/backends/zarr.py:1125:30-32: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR xarray/backends/zarr.py:1128:41-56: The type of this argument is unknown [unknown-argument-type]

spack (https://github.com/spack/spack)
+ ERROR lib/spack/spack/buildcache_migrate.py:186:9-34: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/ci/gitlab.py:298:32-51: The type of this argument is unknown [unknown-argument-type]
- ERROR lib/spack/spack/ci/gitlab.py:335:37-39: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/spack/spack/ci/gitlab.py:350:36-38: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/spack/spack/ci/gitlab.py:371:44-46: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/spack/spack/ci/gitlab.py:379:43-45: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/spack/spack/ci/gitlab.py:393:40-42: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR lib/spack/spack/cmd/install.py:423:41-70: The type of this argument is unknown [unknown-argument-type]
- ERROR lib/spack/spack/environment/environment.py:3420:39-41: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/spack/spack/test/compilers/libraries.py:70:50-52: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

poetry (https://github.com/python-poetry/poetry)
- ERROR tests/installation/test_installer.py:208:39-41: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/installation/test_installer.py:386:39-41: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/test_factory.py:430:45-47: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]

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.

Indexed assignment incorrectly narrows Any values

2 participants