Repository navigation
Infer conditional-expression empty containers from the other branch - #4799
Closed
nitishagar wants to merge 1 commit into
Closed
nitishagar wants to merge 1 commit into
nitishagar wants to merge 1 commit into
Conversation
A conditional expression with one typed and one empty container branch inferred the union of both, keeping a spurious Unknown element type: `list[int]() if condition() else []` came out as `list[int] | list[Unknown]` (issue facebook#4741). The same shape already worked in short-circuit `or` expressions because boolop feeds each operand the preceding operands' types as a soft hint. Apply the same relay to the ternary's union path: when there is no ambient hint, the else branch is inferred with a soft hint built from the body branch's (un-narrowed) type, so the empty display's fresh element variable resolves against it instead of degrading to implicit Any. The soft hint carries no error collector and the empty-display fallbacks only commit a decomposed hint after an assignability check, so unrelated branch pairs, annotated contexts, and literal-condition short-circuits are unchanged. Fixes facebook#4741
nitishagar
force-pushed
the
fix/ifexp-empty-list-inference-4741
branch
from
September 24, 2026 10:38
fb64832 to
7bdce83
Compare
Contributor
|
This pull request has been imported. If you are a Meta employee, you can view this in D118631201. (Because this pull request was imported automatically, there will not be any future comments.) |
|
Diff from mypy_primer, showing the effect of this PR on open source code: ============================================================
SUMMARY
============================================================
Total: +371 new errors, -778 fixed errors
By preset: +211/-157 (default), +212/-547 (strict)
Projects with changes (69):
pip: +3 -5
tornado: +1 -1
black: +0 -1
openlibrary: +1 -22
cloud-init: +0 -4
cki-lib: +0 -7
mkosi: +0 -3
dulwich: +4 -7
mitmproxy: +0 -1
steam.py: +0 -3
rotki: +4 -33
bokeh: +0 -1
pytest: +2 -7
jax: +7 -17
spark: +0 -12
prefect: +3 -39
cwltool: +0 -2
pyppeteer: +0 -1
altair: +0 -2
alerta: +0 -6
scikit-learn: +77 -99
materialize: +7 -18
freqtrade: +1 -7
setuptools: +0 -4
pwndbg: +0 -1
scikit-build-core: +0 -3
apprise: +175 -148
operator: +0 -1
schemathesis: +3 -16
starlette: +1 -4
PyWinCtl: +0 -1
streamlit: +0 -3
hydra-zen: +0 -1
stone: +0 -1
pandera: +0 -15
ibis: +0 -2
strawberry: +0 -7
sockeye: +0 -6
zulip: +2 -12
ignite: +3 -1
dragonchain: +0 -1
static-frame: +0 -1
pandas: +1 -14
dd-trace-py: +9 -37
python-htmlgen: +0 -1
mypy: +0 -4
meson: +1 -9
rclip: +0 -2
speedrun.com_global_scoreboard_webapp: +0 -1
core: +29 -68
paasta: +0 -3
jinja: +2 -2
sphinx: +0 -6
xarray: +4 -19
kornia: +0 -5
poetry: +3 -11
pydantic: +2 -7
spack: +10 -23
check-jsonschema: +1 -3
pylint: +1 -4
scrapy: +0 -2
boostedblob: +2 -4
PyGithub: +0 -1
attrs: +1 -4
isort: +9 -12
kopf: +0 -2
graphql-core: +2 -2
archinstall: +0 -1
schema_salad: +0 -5
============================================================
FULL DIFF DETAILS
------------------------------------------------------------
pip (https://github.com/pypa/pip)
- ERROR src/pip/_internal/req/req_install.py:305:13-73: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR src/pip/_internal/resolution/resolvelib/base.py:57:18-36: Implicit conversion of `dict[str, list[str]] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/resolvelib/base.py:57:18-36: Implicit conversion of `dict[str, list[str]]` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/resolvelib/base.py:61:61-62: The type of this argument is unknown [unknown-argument-type]
- ERROR src/pip/_internal/resolution/resolvelib/candidates.py:66:8-70: Implicit conversion of `Literal[False] | Requirement | dict[str, list[str]] | dict[Unknown, Unknown] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/resolvelib/candidates.py:66:8-70: Implicit conversion of `Literal[False] | Requirement | dict[str, list[str]] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/resolvelib/factory.py:265:21-42: Implicit conversion of `dict[str, list[str]] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/resolvelib/factory.py:265:21-42: Implicit conversion of `dict[str, list[str]]` to `bool` is not allowed [implicit-bool]
tornado (https://github.com/tornadoweb/tornado)
- ERROR tornado/routing.py:369:20-38: Implicit conversion of `dict[str, Any] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR tornado/routing.py:369:20-38: Implicit conversion of `dict[str, Any]` to `bool` is not allowed [implicit-bool]
black (https://github.com/psf/black)
- ERROR src/blackd/__init__.py:309:63-65: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
openlibrary (https://github.com/internetarchive/openlibrary)
- ERROR openlibrary/bookworm/tests/test_cli.py:477:88-90: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/core/edits.py:135:96-98: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/core/edits.py:141:12-23: Implicit conversion of `list[str] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/edits.py:141:12-23: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/edits.py:186:77-79: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/core/models.py:354:36-38: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/core/vendors.py:256:62-64: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/core/vendors.py:257:50-52: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/core/vendors.py:519:54-56: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/core/vendors.py:564:62-64: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/fastapi/internal/api.py:208:68-70: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/plugins/openlibrary/partials.py:90:39-41: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/plugins/upstream/account.py:250:76-78: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/plugins/upstream/addtag.py:261:73-75: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/plugins/upstream/covers.py:157:99-101: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/plugins/upstream/mybooks.py:643:86-88: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/plugins/upstream/mybooks.py:652:113-115: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/plugins/worksearch/facets.py:255:92-94: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/plugins/worksearch/schemes/works.py:766:100-102: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/tests/core/test_acquisitions_weave.py:470:92-94: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/utils/tests/test_request_context.py:117:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/utils/tests/test_request_context.py:118:80-82: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR openlibrary/views/loanstats.py:202:91-93: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
cloud-init (https://github.com/canonical/cloud-init)
- ERROR cloudinit/config/cc_bootcmd.py:52:57-59: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR cloudinit/handlers/boot_hook.py:50:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR cloudinit/net/__init__.py:1100:70-74: Type of lambda parameter `args` is unknown [implicit-any-lambda]
- ERROR cloudinit/netinfo.py:65:53-55: 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/checks.py:99:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR cki_lib/kcidb/checks.py:100:63-65: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR cki_lib/messagequeue.py:274:91-93: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR cki_lib/messagequeue.py:281:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR cki_lib/messagequeue.py:288:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/test_messagequeue.py:825:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/test_messagequeue.py:1121:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
mkosi (https://github.com/systemd/mkosi)
- ERROR mkosi/__init__.py:444:54-56: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR mkosi/__init__.py:2280:79-81: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR mkosi/config.py:1585:73-75: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
dulwich (https://github.com/dulwich/dulwich)
- ERROR dulwich/bisect.py:292:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR dulwich/bisect.py:297:60-64: Implicit conversion of `list[str] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR dulwich/bisect.py:297:60-64: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR dulwich/bisect.py:300:60-64: Implicit conversion of `list[str] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR dulwich/bisect.py:300:60-64: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR dulwich/bisect.py:303:75-79: Implicit conversion of `list[str] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR dulwich/bisect.py:303:75-79: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR dulwich/porcelain/__init__.py:5402:77-79: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR dulwich/reftable.py:1330:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR dulwich/reftable.py:1334:12-25: Implicit conversion of `list[str] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR dulwich/reftable.py:1334:12-25: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
mitmproxy (https://github.com/mitmproxy/mitmproxy)
- ERROR mitmproxy/addons/script.py:111:42-44: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
steam.py (https://github.com/Gobot1234/steam.py)
- ERROR steam/ext/commands/converters.py:324:81-82: Type of lambda parameter `c` is unknown [implicit-any-lambda]
- ERROR steam/gateway.py:839:70-73: Type of lambda parameter `msg` is unknown [implicit-any-lambda]
- ERROR steam/gateway.py:851:59-62: Type of lambda parameter `msg` is unknown [implicit-any-lambda]
rotki (https://github.com/rotki/rotki)
- ERROR rotkehlchen/api/rest.py:2293:16-28: Implicit conversion of `dict[str, Any] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/api/rest.py:2293:16-28: Implicit conversion of `dict[str, Any]` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/api/rest.py:2346:16-28: Implicit conversion of `dict[str, Any] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/api/rest.py:2346:16-28: Implicit conversion of `dict[str, Any]` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/api/rest.py:2362:16-28: Implicit conversion of `dict[str, Any] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/api/rest.py:2362:16-28: Implicit conversion of `dict[str, Any]` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/api/v1/schemas.py:1346:72-74: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/api/v1/schemas.py:4600:49-51: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/chain/bitcoin/manager.py:785:21-25: Type of lambda parameter `addr` is unknown [implicit-any-lambda]
- ERROR rotkehlchen/chain/evm/decoding/morpho/decoder.py:321:68-70: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/db/history_events.py:121:16-21: Type of lambda parameter `value` is unknown [implicit-any-lambda]
- ERROR rotkehlchen/db/history_events.py:121:53-58: The type of this argument is unknown [unknown-argument-type]
- ERROR rotkehlchen/db/history_events.py:121:84-89: The type of this argument is unknown [unknown-argument-type]
- ERROR rotkehlchen/db/upgrade_manager.py:183:72-74: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/db/upgrades/v51_v52.py:41:16-21: Type of lambda parameter `value` is unknown [implicit-any-lambda]
- ERROR rotkehlchen/db/upgrades/v51_v52.py:41:53-58: The type of this argument is unknown [unknown-argument-type]
- ERROR rotkehlchen/db/upgrades/v51_v52.py:41:84-89: The type of this argument is unknown [unknown-argument-type]
- ERROR rotkehlchen/exchanges/binance.py:336:55-57: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/exchanges/bitstamp.py:343:110-112: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/exchanges/bitstamp.py:556:55-57: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/exchanges/bitstamp.py:557:16-28: Implicit conversion of `dict[str, Any] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/exchanges/bitstamp.py:557:16-28: Implicit conversion of `dict[str, Any]` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/exchanges/independentreserve.py:193:45-59: Cannot set item in `OrderedDict[str, ApiKey | int]` [unsupported-operation]
- ERROR rotkehlchen/exchanges/kucoin.py:201:55-57: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/externalapis/cryptocompare.py:277:80-82: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/externalapis/cryptocompare.py:278:80-82: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/rotkehlchen.py:297:17-39: The type of this argument is unknown [unknown-argument-type]
- ERROR rotkehlchen/tests/api/test_exchanges.py:1395:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/api/test_exchanges.py:1432:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/api/test_user_authenticate.py:243:59-61: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/api/test_user_authenticate.py:765:59-61: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/db/test_db_upgrades.py:3399:68-70: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/mcp/test_analytics.py:797:64-66: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/unit/globaldb/test_globaldb_cache.py:320:64-66: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/unit/test_protocol_balances.py:968:81-83: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/unit/test_protocol_balances.py:968:85-87: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR rotkehlchen/tests/websocketsapi/test_session_cookie.py:27:82-84: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
bokeh (https://github.com/bokeh/bokeh)
- ERROR src/bokeh/server/contexts.py:283:62-64: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
pytest (https://github.com/pytest-dev/pytest)
- ERROR src/_pytest/_py/path.py:151:80-81: Type of lambda parameter `x` is unknown [implicit-any-lambda]
- ERROR src/_pytest/_py/path.py:159:16-161:10: The type of `dirs` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR src/_pytest/_py/path.py:164:37-43: The type of this argument is unknown [unknown-argument-type]
- ERROR src/_pytest/_py/path.py:170:37-43: The type of this argument is unknown [unknown-argument-type]
- ERROR src/_pytest/capture.py:953:16-39: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/capture.py:953:16-39: Implicit conversion of `Any | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/terminal.py:1352:77-79: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/_pytest/terminal.py:1353:20-26: Implicit conversion of `list[tuple[int, str, int | None, str]] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/terminal.py:1353:20-26: Implicit conversion of `list[tuple[int, str, int | None, str]]` to `bool` is not allowed [implicit-bool]
jax (https://github.com/google/jax)
+ ERROR jax/_src/array.py:411:12-14: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR jax/_src/internal_test_util/test_harnesses.py:2795:51-64: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/internal_test_util/test_harnesses.py:2795:179-192: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/internal_test_util/test_harnesses.py:2797:7-30: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/internal_test_util/test_harnesses.py:2799:7-30: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/jaxpr_util.py:424:32-34: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:3295:59-61: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/_src/named_sharding.py:343:14-16: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/_src/pallas/hlo_interpreter.py:397:6-10: Implicit conversion of `tuple[int | Unknown, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR jax/_src/pallas/hlo_interpreter.py:397:6-10: Implicit conversion of `tuple[int, ...]` to `bool` is not allowed [implicit-bool]
- ERROR jax/_src/pallas/mosaic/interpret/interpret_pallas_call.py:2173:6-10: Implicit conversion of `tuple[int | Unknown, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR jax/_src/pallas/mosaic/interpret/interpret_pallas_call.py:2173:6-10: Implicit conversion of `tuple[int, ...]` to `bool` is not allowed [implicit-bool]
- ERROR jax/_src/pallas/mosaic/pallas_call_registration.py:334:63-65: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/_src/pallas/mosaic/pipeline.py:2444:58-60: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/_src/pallas/mosaic_gpu/primitives.py:2604:61-63: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/_src/pallas/mpmd.py:633:77-79: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/_src/source_info_util.py:181:59-61: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/_src/source_info_util.py:181:63-65: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/_src/state/primitives.py:652:34-36: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/experimental/array_serialization/tensorstore_impl.py:159:52-54: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/experimental/key_reuse/_core.py:596:62-64: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/experimental/mosaic/gpu/dialect_lowering.py:2822:12-14: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/experimental/mosaic/gpu/dialect_lowering.py:2827:12-14: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR jax/experimental/mosaic/gpu/layout_inference.py:2311:76-78: 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/pandas/tests/data_type_ops/testing_utils.py:172:84-86: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR python/pyspark/pandas/tests/data_type_ops/testing_utils.py:179:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR python/pyspark/pandas/tests/data_type_ops/testing_utils.py:187:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR python/pyspark/pandas/tests/data_type_ops/testing_utils.py:204:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR python/pyspark/sql/connect/merge.py:71:71-72: Type of lambda parameter `_` is unknown [implicit-any-lambda]
- ERROR python/pyspark/sql/connect/profiler.py:37:64-66: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR python/pyspark/sql/connect/readwriter.py:600:71-72: Type of lambda parameter `_` is unknown [implicit-any-lambda]
- ERROR python/pyspark/sql/connect/readwriter.py:987:71-72: Type of lambda parameter `_` is unknown [implicit-any-lambda]
- ERROR python/pyspark/sql/profiler.py:470:52-54: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR python/pyspark/sql/session.py:1693:83-84: Type of lambda parameter `_` is unknown [implicit-any-lambda]
- ERROR python/pyspark/sql/session.py:1707:29-30: Type of lambda parameter `_` is unknown [implicit-any-lambda]
- ERROR python/pyspark/sql/udf.py:532:89-91: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
prefect (https://github.com/PrefectHQ/prefect)
- ERROR src/integrations/prefect-dask/prefect_dask/task_runners.py:249:71-73: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-dask/prefect_dask/task_runners.py:250:65-67: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-dask/prefect_dask/task_runners.py:251:68-70: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-dbt/prefect_dbt/cli/credentials.py:161:85-87: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:1314:84-86: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-dbt/prefect_dbt/core/runner.py:1285:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-docker/prefect_docker/worker.py:884:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-docker/tests/test_worker.py:1226:72-74: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/integrations/prefect-gcp/prefect_gcp/bigquery.py:57:54-56: 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:1373:73-75: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:88:26-28: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:54:80-82: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:87:26-28: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/database/_migrations/versions/sqlite/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:55:81-83: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/config.py:306:67-69: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/deploy/_commands.py:475:70-72: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/cli/deployment.py:518:20-41: Implicit conversion of `list[object] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deployment.py:518:20-41: Implicit conversion of `list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/client/orchestration/__init__.py:331:71-73: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/client/orchestration/__init__.py:1278:71-73: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/deployments/flow_runs.py:212:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/deployments/flow_runs.py:411:82-84: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/deployments/steps/core.py:108:48-50: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/deployments/steps/core.py:130:16-23: Implicit conversion of `str | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/deployments/steps/core.py:130:16-23: Implicit conversion of `str` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/flow_engine.py:2286:55-57: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/events/schemas/automations.py:811:62-64: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/events/schemas/automations.py:814:61-63: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR src/prefect/server/models/block_schemas.py:501:17-64: The type of this argument is unknown [unknown-argument-type]
- ERROR src/prefect/server/models/events.py:137:57-59: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/events.py:144:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/events.py:148:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/events.py:154:65-67: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/events.py:158:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/events.py:168:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/events.py:179:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/events.py:185:61-63: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/events.py:189:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/server/models/task_runs.py:586:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/telemetry/run_telemetry.py:120:66-68: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/workers/base.py:399:83-85: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/prefect/workers/base.py:400:83-85: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
cwltool (https://github.com/common-workflow-language/cwltool)
- ERROR cwltool/main.py:369:13-95: The type of `input_basedir` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR cwltool/singularity.py:387:84-86: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
pyppeteer (https://github.com/pyppeteer/pyppeteer)
- ERROR pyppeteer/network_manager.py:118:58-60: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
altair (https://github.com/vega/altair)
- ERROR altair/jupyter/jupyter_chart.py:401:20-22: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/__init__.py:232:56-58: 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/database/backends/mongodb/base.py:458:46-48: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR alerta/database/backends/mongodb/base.py:464:46-48: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR alerta/database/backends/mongodb/base.py:478:59-61: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR alerta/database/backends/mongodb/base.py:484:46-48: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR alerta/database/backends/mongodb/base.py:1489:45-47: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/test_zrouting.py:19:49-51: 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/_loss/tests/test_link.py:126:24-130:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown, rtol=float) [no-matching-overload]
+ ERROR sklearn/_loss/tests/test_link.py:126:24-130:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown, rtol=float) [no-matching-overload]
- ERROR sklearn/_loss/tests/test_link.py:134:24-139:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown, rtol=float, atol=Unknown) [no-matching-overload]
+ ERROR sklearn/_loss/tests/test_link.py:134:24-139:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown, rtol=float, atol=Unknown) [no-matching-overload]
- ERROR sklearn/_loss/tests/test_loss.py:1418:24-1420:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown, rtol=Unknown, atol=Unknown) [no-matching-overload]
+ ERROR sklearn/_loss/tests/test_loss.py:1418:24-1420:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown, rtol=Unknown, atol=Unknown) [no-matching-overload]
- ERROR sklearn/callback/tests/_common/estimators.py:40:87-89: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/callback/tests/_common/estimators.py:197:87-89: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/decomposition/tests/test_pca.py:1078:12-34: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `dtype` [missing-attribute]
+ ERROR sklearn/decomposition/tests/test_pca.py:1078:12-34: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `dtype` [missing-attribute]
- ERROR sklearn/decomposition/tests/test_pca.py:1079:12-34: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/decomposition/tests/test_pca.py:1079:12-34: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
- ERROR sklearn/decomposition/tests/test_pca.py:1080:12-42: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `dtype` [missing-attribute]
+ ERROR sklearn/decomposition/tests/test_pca.py:1080:12-42: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `dtype` [missing-attribute]
- ERROR sklearn/decomposition/tests/test_pca.py:1084:26-48: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/decomposition/tests/test_pca.py:1084:26-48: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
- ERROR sklearn/decomposition/tests/test_pca.py:1093:8-30: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/decomposition/tests/test_pca.py:1093:8-30: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
- ERROR sklearn/ensemble/_stacking.py:197:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/ensemble/_voting.py:95:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/linear_model/_glm/glm.py:337:38-69: No matching overload found for function `numpy._core.multiarray.concatenate` called with arguments: (tuple[tuple[Unknown | None, ...] | Unknown | None, ndarray]) [no-matching-overload]
+ ERROR sklearn/linear_model/_glm/glm.py:337:38-69: No matching overload found for function `numpy._core.multiarray.concatenate` called with arguments: (tuple[tuple[Unknown, ...] | Unknown | None, ndarray]) [no-matching-overload]
- ERROR sklearn/linear_model/_glm/glm.py:338:20-31: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `astype` [missing-attribute]
+ ERROR sklearn/linear_model/_glm/glm.py:338:20-31: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `astype` [missing-attribute]
- ERROR sklearn/linear_model/_logistic.py:1610:49-1612:18: No matching overload found for function `numpy._core.multiarray.concatenate` called with arguments: (list[tuple[Unknown | None, ...] | Unknown | None], axis=Literal[1]) [no-matching-overload]
+ ERROR sklearn/linear_model/_logistic.py:1610:49-1612:18: No matching overload found for function `numpy._core.multiarray.concatenate` called with arguments: (list[tuple[Unknown, ...] | Unknown | None], axis=Literal[1]) [no-matching-overload]
- ERROR sklearn/linear_model/_logistic.py:1611:39-60: Cannot index into `tuple[Unknown | None, ...]` [bad-index]
+ ERROR sklearn/linear_model/_logistic.py:1611:39-60: Cannot index into `tuple[Unknown, ...]` [bad-index]
- ERROR sklearn/linear_model/_logistic.py:2631:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/linear_model/_ransac.py:444:22-24: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/linear_model/_ridge.py:2525:26-28: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/linear_model/tests/test_logistic.py:729:28-51: No matching overload found for function `numpy.lib._arraysetops_impl.unique` called with arguments: (tuple[Unknown | None, ...] | Unknown | None) [no-matching-overload]
+ ERROR sklearn/linear_model/tests/test_logistic.py:729:28-51: No matching overload found for function `numpy.lib._arraysetops_impl.unique` called with arguments: (tuple[Unknown, ...] | Unknown | None) [no-matching-overload]
- ERROR sklearn/linear_model/tests/test_logistic.py:731:25-51: No matching overload found for function `numpy.lib._arraysetops_impl.unique` called with arguments: (tuple[Unknown | None, ...] | Unknown | None) [no-matching-overload]
+ ERROR sklearn/linear_model/tests/test_logistic.py:731:25-51: No matching overload found for function `numpy.lib._arraysetops_impl.unique` called with arguments: (tuple[Unknown, ...] | Unknown | None) [no-matching-overload]
- ERROR sklearn/linear_model/tests/test_logistic.py:2941:28-2943:14: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Any, rtol=float, atol=Unknown) [no-matching-overload]
+ ERROR sklearn/linear_model/tests/test_logistic.py:2941:28-2943:14: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Any, rtol=float, atol=Unknown) [no-matching-overload]
- ERROR sklearn/linear_model/tests/test_logistic.py:2948:24-2953:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown, rtol=float, atol=Unknown) [no-matching-overload]
+ ERROR sklearn/linear_model/tests/test_logistic.py:2948:24-2953:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown, rtol=float, atol=Unknown) [no-matching-overload]
- ERROR sklearn/linear_model/tests/test_logistic.py:2958:24-2963:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown, rtol=float, atol=Unknown) [no-matching-overload]
+ ERROR sklearn/linear_model/tests/test_logistic.py:2958:24-2963:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown, rtol=float, atol=Unknown) [no-matching-overload]
- ERROR sklearn/linear_model/tests/test_logistic.py:3080:28-3082:14: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Any, rtol=float, atol=Unknown) [no-matching-overload]
+ ERROR sklearn/linear_model/tests/test_logistic.py:3080:28-3082:14: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Any, rtol=float, atol=Unknown) [no-matching-overload]
- ERROR sklearn/linear_model/tests/test_logistic.py:3153:9-25: Result of call expression is of type `tuple[Unknown | None, ...] | Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/linear_model/tests/test_logistic.py:3153:9-25: Result of call expression is of type `tuple[Unknown, ...] | Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/linear_model/tests/test_sag.py:753:25-30: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `actual` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | number]]] | _NestedSequence[_SupportsArray[dtype[object_]]] | _NestedSequence[complex] | _SupportsArray[dtype[numpy.bool | number]] | _SupportsArray[dtype[object_]] | complex` in function `numpy.testing._private.utils.assert_almost_equal` [bad-argument-type]
+ ERROR sklearn/linear_model/tests/test_sag.py:753:25-30: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `actual` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | number]]] | _NestedSequence[_SupportsArray[dtype[object_]]] | _NestedSequence[complex] | _SupportsArray[dtype[numpy.bool | number]] | _SupportsArray[dtype[object_]] | complex` in function `numpy.testing._private.utils.assert_almost_equal` [bad-argument-type]
- ERROR sklearn/metrics/_classification.py:241:8-32: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/metrics/_classification.py:241:8-32: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
- ERROR sklearn/metrics/_classification.py:243:14-36: `-` is not supported between `Literal[1]` and `tuple[Unknown | None, ...]` [unsupported-operation]
+ ERROR sklearn/metrics/_classification.py:243:14-36: `-` is not supported between `Literal[1]` and `tuple[Unknown, ...]` [unsupported-operation]
- ERROR sklearn/metrics/_classification.py:335:21-45: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/metrics/_classification.py:335:21-45: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
- ERROR sklearn/metrics/_classification.py:564:20-31: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `size` [missing-attribute]
+ ERROR sklearn/metrics/_classification.py:564:20-31: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `size` [missing-attribute]
- ERROR sklearn/metrics/_classification.py:569:32-48: No matching overload found for function `numpy.lib._arraysetops_impl.intersect1d` called with arguments: (Unknown, tuple[Unknown | None, ...] | Unknown | None) [no-matching-overload]
+ ERROR sklearn/metrics/_classification.py:569:32-48: No matching overload found for function `numpy.lib._arraysetops_impl.intersect1d` called with arguments: (Unknown, tuple[Unknown, ...] | Unknown | None) [no-matching-overload]
- ERROR sklearn/metrics/_classification.py:572:16-27: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `size` [missing-attribute]
+ ERROR sklearn/metrics/_classification.py:572:16-27: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `size` [missing-attribute]
- ERROR sklearn/metrics/_classification.py:576:9-21: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `dtype` [missing-attribute]
+ ERROR sklearn/metrics/_classification.py:576:9-21: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `dtype` [missing-attribute]
- ERROR sklearn/metrics/_classification.py:3649:29-43: `-` is not supported between `Literal[1]` and `tuple[Unknown | None, ...]` [unsupported-operation]
+ ERROR sklearn/metrics/_classification.py:3649:29-43: `-` is not supported between `Literal[1]` and `tuple[Unknown, ...]` [unsupported-operation]
- ERROR sklearn/metrics/_ranking.py:288:33-45: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/metrics/_ranking.py:288:33-45: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
- ERROR sklearn/metrics/cluster/_supervised.py:177:31-181:6: No matching overload found for function `scipy.sparse._coo.coo_array.__init__` called with arguments: (tuple[ndarray[Unknown], tuple[Unknown | None, Unknown | None]], shape=tuple[Unknown, Unknown], dtype=Unknown | type[int64]) [no-matching-overload]
- ERROR sklearn/metrics/cluster/_supervised.py:178:18-33: Object of class `NoneType` has no attribute `shape` [missing-attribute]
- ERROR sklearn/metrics/tests/test_common.py:2190:14-16: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/mixture/_base.py:462:24-67: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `pvals` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multinomial` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:462:24-67: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `pvals` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multinomial` [bad-argument-type]
- ERROR sklearn/mixture/_base.py:468:45-49: Argument `Unknown | None` is not assignable to parameter `mean` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
- ERROR sklearn/mixture/_base.py:468:51-61: Argument `Unknown | None` is not assignable to parameter `cov` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:468:45-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/mixture/_base.py:468:51-61: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/mixture/_base.py:470:25-66: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `iter1` with type `Iterable[Unknown | None]` in function `zip.__new__` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:470:25-66: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `iter1` with type `Iterable[Unknown]` in function `zip.__new__` [bad-argument-type]
- ERROR sklearn/mixture/_base.py:471:25-72: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `iter2` with type `Iterable[Unknown | None]` in function `zip.__new__` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:471:25-72: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `iter2` with type `Iterable[Unknown]` in function `zip.__new__` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:480:25-29: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/mixture/_base.py:480:25-29: Argument `Unknown | None` is not assignable to parameter `mean` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:481:25-72: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `cov` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
- ERROR sklearn/mixture/_base.py:481:25-72: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `cov` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
- ERROR sklearn/mixture/_base.py:485:25-66: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `iter1` with type `Iterable[Unknown | None]` in function `zip.__new__` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:485:25-66: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `iter1` with type `Iterable[Unknown]` in function `zip.__new__` [bad-argument-type]
- ERROR sklearn/mixture/_base.py:494:30-42: No matching overload found for function `numpy._typing._ufunc._UFunc_Nin1_Nout1.__call__` called with arguments: (Unknown | None) [no-matching-overload]
+ ERROR sklearn/mixture/_base.py:494:31-41: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/mixture/_base.py:496:25-66: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `iter1` with type `Iterable[Unknown | None]` in function `zip.__new__` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:496:25-66: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `iter1` with type `Iterable[Unknown]` in function `zip.__new__` [bad-argument-type]
- ERROR sklearn/mixture/_base.py:497:25-72: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `iter2` with type `Iterable[Unknown | None]` in function `zip.__new__` [bad-argument-type]
+ ERROR sklearn/mixture/_base.py:497:25-72: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `iter2` with type `Iterable[Unknown]` in function `zip.__new__` [bad-argument-type]
- ERROR sklearn/model_selection/_split.py:2341:12-18: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `ndim` [missing-attribute]
+ ERROR sklearn/model_selection/_split.py:2341:12-18: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `ndim` [missing-attribute]
- ERROR sklearn/model_selection/_split.py:2344:36-46: Object of class `NoneType` has no attribute `astype` [missing-attribute]
- ERROR sklearn/model_selection/_split.py:2346:53-2348:10: No matching overload found for function `numpy.lib._arraysetops_impl.unique` called with arguments: (ndarray[tuple[Any, ...], dtype[Unknown]] | tuple[Unknown | None, ...] | Unknown | None, return_inverse=Literal[True], return_counts=Literal[True]) [no-matching-overload]
+ ERROR sklearn/model_selection/_split.py:2346:53-2348:10: No matching overload found for function `numpy.lib._arraysetops_impl.unique` called with arguments: (ndarray[tuple[Any, ...], dtype[Unknown]] | tuple[Unknown, ...] | Unknown | None, return_inverse=Literal[True], return_counts=Literal[True]) [no-matching-overload]
- ERROR sklearn/model_selection/_validation.py:814:60-62: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/model_selection/_validation.py:816:66-68: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/model_selection/_validation.py:1263:20-27: Object of type `tuple[Unknown | None, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/model_selection/_validation.py:1263:20-27: Object of type `tuple[Unknown, ...] | Unknown | None` has no attribute `shape` [missing-attribute]
- ERROR sklearn/model_selection/_validation.py:1319:60-62: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/model_selection/_validation.py:1352:25-56: Argument `tuple[Unknown | None, ...] | Unknown | None` is not assignable to parameter `iterable` with type `Iterable[Unknown | None]` in function `set.__init__` [bad-argument-type]
+ ERROR sklearn/model_selection/_validation.py:1352:25-56: Argument `tuple[Unknown, ...] | Unknown | None` is not assignable to parameter `iterable` with type `Iterable[Unknown]` in function `set.__init__` [bad-argument-type]
- ERROR sklearn/model_selection/_validation.py:1722:60-62: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/model_selection/_validation.py:1723:66-68: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/multioutput.py:183:85-87: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR sklearn/preprocessing/_label.py:643:25-650:10: No matching overload found for function `scipy.sparse._csr.csr_array.__init__` called with arguments: (tuple[tuple[Unknown | None, ...] | Unknown | None, tuple[Unknown | None, ...] | Unknown | None, tuple[Unknown | None, ...] | Unknown | None], shape=tuple[int | Unknown, Unknown]) [no-matching-overload]
+ ERROR sklearn/preprocessing/_label.py:643:25-650:10: No matching overload found for function `scipy.sparse._csr.csr_array.__init__` called with arguments: (tuple[tuple[Unknown, ...] | Unknown | None, tuple[Unknown, ...] | Unknown | None, tuple[Unknown, ...] | Unknown | None], shape=tuple[int | Unknown, Unknown]) [no-matching-overload]
- ERROR sklearn/preprocessing/tests/test_polynomial.py:1403:24-70: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown) [no-matching-overload]
+ ERROR sklearn/preprocessing/tests/test_polynomial.py:1403:24-70: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown) [no-matching-overload]
- ERROR sklearn/tests/test_calibration.py:1325:24-1329:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown, rtol=float) [no-matching-overload]
+ ERROR sklearn/tests/test_calibration.py:1325:24-1329:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown, rtol=float) [no-matching-overload]
- ERROR sklearn/tests/test_calibration.py:1331:24-72: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown) [no-matching-overload]
+ ERROR sklearn/tests/test_calibration.py:1331:24-72: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown) [no-matching-overload]
- ERROR sklearn/tests/test_calibration.py:1398:24-1402:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown | None, ...] | Unknown | None, Unknown, rtol=float) [no-matching-overload]
+ ERROR sklearn/tests/test_calibration.py:1398:24-1402:10: No matching overload found for function `numpy.testing._private.utils.assert_allclose` called with arguments: (tuple[Unknown, ...] | Unknown | None, Unknown, rtol=float) [no-matching-overload]
... (truncated 61 lines) ...
materialize (https://github.com/MaterializeInc/materialize)
- ERROR ci/mkpipeline.py:342:12-22: Implicit conversion of `set[str] | set[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR ci/mkpipeline.py:342:12-22: Implicit conversion of `set[str]` to `bool` is not allowed [implicit-bool]
- ERROR ci/mkpipeline.py:342:12-52: Implicit conversion of `bool | set[str] | set[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR ci/mkpipeline.py:342:12-52: Implicit conversion of `bool | set[str]` to `bool` is not allowed [implicit-bool]
- ERROR misc/dbt-materialize/tests/adapter/expected_catalog.py:51:49-50: Type of lambda parameter `x` is unknown [implicit-any-lambda]
- ERROR misc/dbt-materialize/tests/adapter/expected_catalog.py:173:49-50: Type of lambda parameter `x` is unknown [implicit-any-lambda]
- ERROR test/clusterd-test-driver/run-local.py:125:74-76: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR test/data-ingest/mzcompose.py:199:24-86: The type of `workload` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR test/data-ingest/mzcompose.py:202:17-25: The type of this argument is unknown [unknown-argument-type]
+ ERROR test/data-ingest/mzcompose.py:209:26-45: The type of `mz_service` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR test/data-ingest/mzcompose.py:210:33-59: The type of `deploy_generation` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR test/limits/mzcompose.py:2270:12-21: Implicit conversion of `list[type[Generator]]` to `bool` is not allowed [implicit-bool]
+ ERROR test/limits/mzcompose.py:2270:12-21: Implicit conversion of `list[Any]` to `bool` is not allowed [implicit-bool]
- ERROR test/mysql-cdc-resumption/mzcompose.py:116:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR test/mysql-cdc-resumption-old-syntax/mzcompose.py:120:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR test/pg-cdc-old-syntax/mzcompose.py:557:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR test/pg-cdc-resumption/mzcompose.py:86:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR test/pg-cdc-resumption-old-syntax/mzcompose.py:78:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR test/sql-server-resumption-old-syntax/mzcompose.py:72:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/cli/mzcompose.py:866:26-28: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/cli/scratch/__main__.py:99:51-53: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/git.py:90:41-43: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/mzbuild.py:697:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/mzbuild.py:714:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR misc/python/materialize/workload_replay/column.py:461:51-53: 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/exchange/exchange.py:2138:95-97: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR freqtrade/exchange/exchange.py:2483:45-47: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR freqtrade/exchange/krakenfutures.py:86:84-86: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR freqtrade/exchange/krakenfutures.py:87:84-86: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR freqtrade/rpc/rpc.py:160:89-91: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR freqtrade/rpc/rpc.py:1333:51-53: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR freqtrade/rpc/rpc.py:1338:16-27: Implicit conversion of `list[_CustomData | Unknown] | list[_CustomData] | list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR freqtrade/rpc/rpc.py:1338:16-27: Implicit conversion of `list[_CustomData | Unknown] | list[_CustomData] | Unknown` to `bool` is not allowed [implicit-bool]
setuptools (https://github.com/pypa/setuptools)
- ERROR setuptools/command/install_lib.py:71:66-68: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR setuptools/config/setupcfg.py:468:80-81: Type of lambda parameter `_` is unknown [implicit-any-lambda]
- ERROR setuptools/config/setupcfg.py:468:83-84: Type of lambda parameter `v` is unknown [implicit-any-lambda]
- ERROR setuptools/installer.py:90:82-84: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
pwndbg (https://github.com/pwndbg/pwndbg)
- ERROR pwndbg/commands/got_tracking.py:37:65-66: Type of lambda parameter `x` is unknown [implicit-any-lambda]
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- ERROR tests/test_entrypoint_config.py:305:75-77: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/scikit_build_core/build/_file_processor.py:151:14-16: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/scikit_build_core/settings/sources.py:446:52-54: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
apprise (https://github.com/caronc/apprise)
- ERROR apprise/apprise.py:553:46-51: Implicit conversion of `list[Unknown] | set[Unknown] | tuple[Unknown, ...]` to `bool` is not allowed [implicit-bool]
- ERROR apprise/apprise.py:553:57-59: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR apprise/attachment/base.py:418:19-420:10: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/attachment/base.py:438:22-78: The type of `_fname` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/attachment/base.py:438:39-69: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/attachment/base.py:446:40-63: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/attachment/base.py:451:47-70: The type of this argument is unknown [unknown-argument-type]
+ ERROR apprise/attachment/base.py:422:16-23: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/attachment/base.py:427:12-36: `in` is not supported between `Literal['mime']` and `None` [not-iterable]
+ ERROR apprise/attachment/base.py:429:17-35: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
+ ERROR apprise/attachment/base.py:433:12-36: `in` is not supported between `Literal['name']` and `None` [not-iterable]
+ ERROR apprise/attachment/base.py:438:39-57: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
+ ERROR apprise/attachment/base.py:443:12-37: `in` is not supported between `Literal['cache']` and `None` [not-iterable]
+ ERROR apprise/attachment/base.py:446:36-64: Cannot set item in `dict[str, dict[Unknown, Unknown] | str | None]` [unsupported-operation]
+ ERROR apprise/attachment/base.py:446:40-63: Cannot index into `str` [bad-index]
+ ERROR apprise/attachment/base.py:446:40-63: `None` is not subscriptable [unsupported-operation]
+ ERROR apprise/attachment/base.py:451:36-71: Cannot set item in `dict[str, dict[Unknown, Unknown] | str | None]` [unsupported-operation]
+ ERROR apprise/attachment/base.py:451:47-70: Cannot index into `str` [bad-index]
+ ERROR apprise/attachment/base.py:451:47-70: `None` is not subscriptable [unsupported-operation]
- ERROR apprise/attachment/file.py:134:19-63: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR apprise/attachment/file.py:135:16-23: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/attachment/http.py:380:19-60: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR apprise/attachment/http.py:381:16-23: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/attachment/http.py:388:9-34: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `update` [missing-attribute]
- ERROR apprise/attachment/memory.py:185:19-63: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR apprise/attachment/memory.py:186:16-23: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/config/base.py:483:19-66: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/config/base.py:487:20-27: Returning implicit Any from function declared to return "dict[str, object] | None" [no-any-return-implicit]
+ ERROR apprise/config/base.py:485:16-23: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/config/base.py:487:20-27: Returned type `dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None` is not assignable to declared return type `dict[str, object] | None` [bad-return]
+ ERROR apprise/config/base.py:490:12-38: `in` is not supported between `Literal['format']` and `None` [not-iterable]
+ ERROR apprise/config/base.py:491:33-51: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
- ERROR apprise/config/base.py:494:21-80: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/config/base.py:494:62-79: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/config/base.py:506:40-63: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/config/base.py:511:47-70: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/config/base.py:513:16-23: Returning implicit Any from function declared to return "dict[str, object] | None" [no-any-return-implicit]
+ ERROR apprise/config/base.py:499:12-40: `in` is not supported between `Literal['encoding']` and `None` [not-iterable]
+ ERROR apprise/config/base.py:500:35-53: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
+ ERROR apprise/config/base.py:503:12-37: `in` is not supported between `Literal['cache']` and `None` [not-iterable]
+ ERROR apprise/config/base.py:506:36-64: Cannot set item in `dict[str, dict[Unknown, Unknown] | str | None]` [unsupported-operation]
+ ERROR apprise/config/base.py:506:40-63: Cannot index into `str` [bad-index]
+ ERROR apprise/config/base.py:506:40-63: `None` is not subscriptable [unsupported-operation]
+ ERROR apprise/config/base.py:511:36-71: Cannot set item in `dict[str, dict[Unknown, Unknown] | str | None]` [unsupported-operation]
+ ERROR apprise/config/base.py:511:47-70: Cannot index into `str` [bad-index]
+ ERROR apprise/config/base.py:511:47-70: `None` is not subscriptable [unsupported-operation]
+ ERROR apprise/config/base.py:513:16-23: Returned type `dict[str, dict[Unknown, Unknown] | str | None] | Unknown` is not assignable to declared return type `dict[str, object] | None` [bad-return]
- ERROR apprise/plugins/base.py:1206:19-1208:10: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/plugins/base.py:1212:20-27: Returning implicit Any from function declared to return "dict[str, Any] | None" [no-any-return-implicit]
+ ERROR apprise/plugins/base.py:1210:16-23: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/base.py:1215:12-38: `in` is not supported between `Literal['format']` and `None` [not-iterable]
+ ERROR apprise/plugins/base.py:1216:33-51: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
- ERROR apprise/plugins/base.py:1220:21-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR apprise/plugins/base.py:1220:21-45: Cannot index into `str` [bad-index]
+ ERROR apprise/plugins/base.py:1220:21-45: `None` is not subscriptable [unsupported-operation]
+ ERROR apprise/plugins/base.py:1225:12-40: `in` is not supported between `Literal['overflow']` and `None` [not-iterable]
+ ERROR apprise/plugins/base.py:1226:35-53: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
- ERROR apprise/plugins/base.py:1236:44-72: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/plugins/base.py:1272:46-72: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/plugins/base.py:1274:16-23: Returning implicit Any from function declared to return "dict[str, Any] | None" [no-any-return-implicit]
+ ERROR apprise/plugins/base.py:1230:24-50: Cannot index into `str` [bad-index]
+ ERROR apprise/plugins/base.py:1230:24-50: `None` is not subscriptable [unsupported-operation]
+ ERROR apprise/plugins/base.py:1235:12-38: `in` is not supported between `Literal['emojis']` and `None` [not-iterable]
+ ERROR apprise/plugins/base.py:1236:33-73: Cannot set item in `dict[str, dict[Unknown, Unknown] | str | None]` [unsupported-operation]
+ ERROR apprise/plugins/base.py:1236:44-62: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
+ ERROR apprise/plugins/base.py:1240:12-34: `in` is not supported between `Literal['tz']` and `None` [not-iterable]
+ ERROR apprise/plugins/base.py:1241:29-47: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `get` [missing-attribute]
+ ERROR apprise/plugins/base.py:1243:12-37: `in` is not supported between `Literal['store']` and `None` [not-iterable]
+ ERROR apprise/plugins/base.py:1244:32-55: Cannot index into `str` [bad-index]
+ ERROR apprise/plugins/base.py:1244:32-55: `None` is not subscriptable [unsupported-operation]
+ ERROR apprise/plugins/base.py:1247:12-37: `in` is not supported between `Literal['retry']` and `None` [not-iterable]
+ ERROR apprise/plugins/base.py:1247:42-65: Cannot index into `str` [bad-index]
+ ERROR apprise/plugins/base.py:1247:42-65: `None` is not subscriptable [unsupported-operation]
+ ERROR apprise/plugins/base.py:1251:12-36: `in` is not supported between `Literal['wait']` and `None` [not-iterable]
+ ERROR apprise/plugins/base.py:1251:41-63: Cannot index into `str` [bad-index]
+ ERROR apprise/plugins/base.py:1251:41-63: `None` is not subscriptable [unsupported-operation]
+ ERROR apprise/plugins/base.py:1271:12-40: `in` is not supported between `Literal['optional']` and `None` [not-iterable]
+ ERROR apprise/plugins/base.py:1272:35-73: Cannot set item in `dict[str, dict[Unknown, Unknown] | str | None]` [unsupported-operation]
+ ERROR apprise/plugins/base.py:1272:46-72: Cannot index into `str` [bad-index]
+ ERROR apprise/plugins/base.py:1272:46-72: `None` is not subscriptable [unsupported-operation]
- ERROR apprise/plugins/bulksms.py:319:29-35: `dict[str, str | Unknown] | list[Unknown] | Unknown` is not assignable to dict key `to` with type `None` [bad-assignment]
+ ERROR apprise/plugins/bulksms.py:316:22-36: The type of `target` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR apprise/plugins/bulksms.py:323:28-42: The type of `p_target` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/plugins/bulkvs.py:234:29-35: `list[Unknown] | Unknown` is not assignable to dict key `To` with type `None` [bad-assignment]
+ ERROR apprise/plugins/bulkvs.py:231:22-36: The type of `target` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/plugins/exotel.py:457:29-35: `list[Unknown] | Unknown` is not assignable to dict key `To` with type `None` [bad-assignment]
+ ERROR apprise/plugins/exotel.py:454:22-36: The type of `target` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/plugins/fcm/__init__.py:474:39-62: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/plugins/fcm/priority.py:196:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR apprise/plugins/mastodon.py:1002:52-54: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR apprise/plugins/matrix/base.py:2381:13-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR apprise/plugins/matrix/base.py:2390:13-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR apprise/plugins/matrix/base.py:2496:21-55: The type of `new_count` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR apprise/plugins/matrix/base.py:2499:13-22: The type of this argument is unknown [unknown-argument-type]
+ ERROR apprise/plugins/matrix/base.py:2505:13-22: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/plugins/matrix/base.py:2657:77-79: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR apprise/plugins/matrix/base.py:2717:29-66: The type of `otk_entry` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/plugins/matrix/base.py:2717:55-61: The type of this argument is unknown [unknown-argument-type]
- ERROR apprise/plugins/matrix/base.py:2717:63-65: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR apprise/plugins/matrix/sas.py:465:16-25: Implicit conversion of `dict[str, Unknown] | dict[Unknown, Unknown] | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/matrix/sas.py:465:16-25: Implicit conversion of `dict[Unknown, Unknown] | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/pushplus.py:376:16-21: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/pushplus.py:480:49-54: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/ringcentral.py:652:61-67: The type of this argument is unknown [unknown-argument-type]
+ ERROR apprise/plugins/smsmanager.py:252:22-36: The type of `target` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR apprise/plugins/telegram.py:1448:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR apprise/plugins/telegram.py:1454:16-43: Implicit conversion of `Literal[True] | dict[str, NotifyFormat | OverflowMode | bool | float | str | Unknown | None] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/telegram.py:1454:16-43: Implicit conversion of `Literal[True] | dict[str, NotifyFormat | OverflowMode | bool | float | str | Unknown | None]` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/telegram.py:1500:16-31: Implicit conversion of `dict[str, NotifyFormat | OverflowMode | bool | float | str | Unknown | None] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/telegram.py:1500:16-31: Implicit conversion of `dict[str, NotifyFormat | OverflowMode | bool | float | str | Unknown | None]` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/telegram.py:1592:34-41: Implicit conversion of `dict[str, str | Unknown] | dict[Unknown, Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/telegram.py:1592:34-41: Implicit conversion of `dict[Unknown, Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/telegram.py:1592:34-53: Implicit conversion of `bool | dict[str, str | Unknown] | dict[Unknown, Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/telegram.py:1592:34-53: Implicit conversion of `bool | dict[Unknown, Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/wpush.py:327:16-21: Implicit conversion of `object | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/wpush.py:327:16-21: Implicit conversion of `object | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/wpush.py:421:49-54: Implicit conversion of `object | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/wpush.py:421:49-54: Implicit conversion of `object | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR apprise/url.py:976:20-28: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | dict[str, str | Unknown] | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/url.py:976:20-28: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/url.py:1028:16-23: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | dict[str, str | Unknown] | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/url.py:1028:16-23: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/cwe312.py:145:12-19: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | dict[str, str | Unknown] | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/cwe312.py:145:12-19: Implicit conversion of `dict[str, dict[Unknown, Unknown] | str | None] | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/cwe312.py:152:12-40: Object of type `dict[Unknown, Unknown] | str | Unknown | None` has no attribute `startswith` [missing-attribute]
+ ERROR apprise/utils/cwe312.py:152:12-40: Object of type `dict[Unknown, Unknown] | str | None` has no attribute `startswith` [missing-attribute]
- ERROR apprise/utils/cwe312.py:169:12-31: Implicit conversion of `dict[Unknown, Unknown] | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/cwe312.py:169:12-31: Implicit conversion of `dict[Unknown, Unknown] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/cwe312.py:184:10-25: Implicit conversion of `dict[Unknown, Unknown] | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/cwe312.py:184:10-25: Implicit conversion of `dict[Unknown, Unknown] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/cwe312.py:190:8-22: Implicit conversion of `dict[Unknown, Unknown] | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/cwe312.py:190:8-22: Implicit conversion of `dict[Unknown, Unknown] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/cwe312.py:223:24-39: Implicit conversion of `dict[Unknown, Unknown] | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/cwe312.py:223:24-39: Implicit conversion of `dict[Unknown, Unknown] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/parse.py:806:16-31: Implicit conversion of `dict[Unknown, Unknown] | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/parse.py:806:16-31: Implicit conversion of `dict[Unknown, Unknown] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/parse.py:896:8-30: Implicit conversion of `dict[Unknown, Unknown] | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/parse.py:896:8-30: Implicit conversion of `dict[Unknown, Unknown] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/parse.py:1063:74-76: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR apprise/utils/parse.py:1064:16-23: Implicit conversion of `list[Any] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/parse.py:1064:16-23: Implicit conversion of `list[Any]` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/parse.py:1067:22-29: Implicit conversion of `list[Any] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/parse.py:1067:22-29: Implicit conversion of `list[Any]` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/parse.py:1180:77-79: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR apprise/utils/parse.py:1182:16-23: Implicit conversion of `list[Any] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/parse.py:1182:16-23: Implicit conversion of `list[Any]` to `bool` is not allowed [implicit-bool]
- ERROR apprise/utils/parse.py:1185:22-29: Implicit conversion of `list[Any] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/parse.py:1185:22-29: Implicit conversion of `list[Any]` to `bool` is not allowed [implicit-bool]
- ERROR tests/test_api.py:901:15-77: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:907:20-29: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:913:15-915:6: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:921:20-29: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:927:15-63: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:933:20-29: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:940:15-72: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:942:20-29: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:948:15-950:6: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:952:20-29: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:958:15-63: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:960:20-29: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:969:15-63: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:971:20-29: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:978:15-76: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:980:20-29: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:987:15-63: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:990:44-51: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:994:44-51: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:1000:15-63: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:1002:44-51: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_api.py:1010:15-72: The type of `results` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR tests/test_api.py:1013:48-55: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_api.py:902:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:903:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:904:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:905:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:906:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:907:22-29: Expected argument after ** to be a mapping, got: dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None in function `apprise.url.URLBase.__init__` [bad-unpacking]
+ ERROR tests/test_api.py:916:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:917:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:918:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:919:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:920:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:921:22-29: Expected argument after ** to be a mapping, got: dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None in function `apprise.url.URLBase.__init__` [bad-unpacking]
+ ERROR tests/test_api.py:928:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:929:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:930:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:931:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:932:12-23: Object of class `NoneType` has no attribute `get` [missing-attribute]
+ ERROR tests/test_api.py:933:22-29: Expected argument after ** to be a mapping, got: dict[str, dict[Unknown, Unknown] | str | None] | Unknown | None in function `apprise.url.URLBase.__init__` [bad-unpacking]
... (truncated 134 lines) ...
operator (https://github.com/canonical/operator)
- ERROR ops/pebble.py:1298:67-69: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
schemathesis (https://github.com/schemathesis/schemathesis)
- ERROR src/schemathesis/config/_error.py:273:72-74: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/core/transport.py:207:59-61: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/engine/core.py:306:64-66: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/reporting/ndjson.py:121:57-59: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/specs/openapi/checks.py:942:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/specs/openapi/coverage/_schema.py:1608:89-91: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/specs/openapi/coverage/_schema.py:1609:102-104: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/specs/openapi/coverage/_schema.py:1612:73-74: The type of this argument is unknown [unknown-argument-type]
- ERROR src/schemathesis/specs/openapi/examples.py:209:104-106: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/specs/openapi/examples.py:211:8-37: Implicit conversion of `list[dict[str, Any]] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/schemathesis/specs/openapi/examples.py:211:8-37: Implicit conversion of `list[dict[str, Any]]` to `bool` is not allowed [implicit-bool]
- ERROR src/schemathesis/specs/openapi/examples.py:229:10-21: Implicit conversion of `list[dict[str, Any]] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/schemathesis/specs/openapi/examples.py:229:10-21: Implicit conversion of `list[dict[str, Any]]` to `bool` is not allowed [implicit-bool]
- ERROR src/schemathesis/specs/openapi/examples.py:229:10-38: Implicit conversion of `bool | list[dict[str, Any]] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/schemathesis/specs/openapi/examples.py:229:10-38: Implicit conversion of `bool | list[dict[str, Any]]` to `bool` is not allowed [implicit-bool]
- ERROR src/schemathesis/specs/openapi/serialization.py:142:97-99: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/specs/openapi/serialization.py:143:83-85: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/specs/openapi/serialization.py:144:101-103: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/schemathesis/specs/openapi/warnings.py:55:86-88: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
starlette (https://github.com/encode/starlette)
- ERROR starlette/applications.py:69:16-19: The type of this argument is unknown [unknown-argument-type]
- ERROR starlette/applications.py:72:36-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR starlette/applications.py:114:33-57: Cannot set item in `dict[str, ExceptionHandler]` [unsupported-operation]
- ERROR starlette/datastructures.py:390:38-40: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/test_datastructures.py:263:66-68: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
PyWinCtl (https://github.com/Kalmat/PyWinCtl)
- ERROR src/pywinctl/_pywinctl_macos.py:1534:82-84: 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/config_util.py:800:82-84: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/streamlit/web/server/starlette/starlette_app.py:609:57-59: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR lib/tests/streamlit/runtime/state/session_state_test.py:5030:53-55: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- ERROR src/hydra_zen/wrapper/_implementations.py:421:71-73: 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/backends/obj_c.py:120:46-48: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
pandera (https://github.com/pandera-dev/pandera)
- ERROR pandera/api/pyspark/model.py:301:21-49: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR pandera/io/common_io.py:232:18-20: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/ibis_io.py:45:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/ibis_io.py:281:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/pandas_io.py:62:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/pandas_io.py:369:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/polars_io.py:45:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/polars_io.py:252:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/pyspark_sql_io.py:45:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/pyspark_sql_io.py:233:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/io/xarray_io.py:95:78-80: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/schema_statistics/common.py:40:73-75: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/schema_statistics/polars.py:164:73-75: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR pandera/schema_statistics/xarray.py:226:73-75: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR tests/pyspark/conftest.py:241:61-63: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
ibis (https://github.com/ibis-project/ibis)
- ERROR ibis/backends/singlestoredb/tests/conftest.py:102:81-83: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR ibis/expr/types/temporal_windows.py:75:68-70: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
strawberry (https://github.com/strawberry-graphql/strawberry)
- ERROR strawberry/aiohttp/views.py:134:55-57: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR strawberry/printer/printer.py:235:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR strawberry/printer/printer.py:318:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR strawberry/printer/printer.py:342:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR strawberry/printer/printer.py:361:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR strawberry/printer/printer.py:490:69-71: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR strawberry/schema_codegen/__init__.py:569:14-16: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
sockeye (https://github.com/awslabs/sockeye)
- ERROR sockeye/inference.py:522:23-33: Cannot set item in `dict[str, SentenceId]` [unsupported-operation]
- ERROR sockeye/inference.py:525:34-57: Cannot set item in `dict[str, SentenceId]` [unsupported-operation]
- ERROR sockeye/inference.py:526:28-45: Cannot set item in `dict[str, SentenceId]` [unsupported-operation]
- ERROR sockeye/inference.py:534:42-47: Cannot set item in `dict[str, SentenceId]` [unsupported-operation]
- ERROR sockeye/inference.py:537:42-44: Cannot set item in `dict[str, SentenceId]` [unsupported-operation]
- ERROR sockeye/inference.py:1053:83-85: 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:339:84-92: The type of this argument is unknown [unknown-argument-type]
- ERROR zerver/data_import/mattermost.py:350:32-40: The type of this argument is unknown [unknown-argument-type]
... (truncated 407 lines) ... |
rchen152
approved these changes
Sep 30, 2026
rchen152
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Contributor
|
This pull request has been merged in 98c9add. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4741
Problem
A conditional expression with one typed and one empty container branch inferred the union of both, keeping a spurious Unknown element type:
The reporter noted the same shape already works in short-circuit
orexpressions (optional_list or []inferslist[int]).Why it happened
The ternary's union path passed only the ambient hint (from an annotation or first use) to both branches. With no ambient hint,
[]falls back to a fresh element variable, which degrades to implicitAny— displayed aslist[Unknown].boolopavoids exactly this by feeding each operand the preceding operands' types as a soft hint.Change
Apply the same relay in the
Expr::Ifunion path: when there is no ambient hint, theelsebranch is inferred with a soft hint built from the body branch's un-narrowed type. This covers list, set, and dict empty displays alike (they all route through this site). The soft hint carries no error collector, and empty-display fallbacks only commit a decomposed hint after an assignability check, so:1 if c else "s") are unchanged,Test plan
testcase!s inpyrefly/lib/test/delayed_inference.rs: the issue repro, set/dict variants, nestedlist[list[int]], ambient-hint precedence, unrelated pair, both-branches-empty, and the reverse orderingcargo test -p pyrefly --lib -- --skip test::lspgreen (the twomissing-sourceLSP interaction failures are pre-existing onmain)