Repository navigation
Conversation
Contributor
|
This pull request has been imported. If you are a Meta employee, you can view this in D125720290. (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: +839 new errors, -490 fixed errors
By preset: +118/-121 (default), +119/-121 (strict)
Projects with changes (64):
pip: +6 -3
openlibrary: +8 -2
cloud-init: +28 -16
rotki: +1 -4
bokeh: +2 -2
pytest: +2 -7
pyjwt: +0 -2
jax: +87 -17
spark: +25 -5
cwltool: +4 -0
prefect: +45 -14
python-chess: +1 -1
cryptography: +0 -2
altair: +0 -1
pyochain: +1 -0
alerta: +4 -3
colour: +2 -2
scikit-learn: +188 -109
freqtrade: +1 -1
more-itertools: +3 -2
setuptools: +4 -3
apprise: +3 -2
pycryptodome: +6 -0
psycopg: +3 -2
manticore: +8 -6
mongo-python-driver: +1 -1
schemathesis: +6 -4
beartype: +0 -3
hydra-zen: +0 -1
pandera: +29 -13
streamlit: +1 -2
stone: +4 -18
antidote: +3 -0
ibis: +22 -7
vision: +2 -12
strawberry: +0 -1
sockeye: +2 -1
zulip: +0 -5
zope.interface: +4 -0
static-frame: +2 -4
hydpy: +0 -2
pandas: +131 -54
websockets: +1 -1
dd-trace-py: +29 -16
mypy: +3 -4
meson: +1 -1
werkzeug: +0 -1
rclip: +0 -1
core: +20 -7
trio: +6 -0
paasta: +2 -0
pyp: +1 -0
sphinx: +0 -4
rich: +2 -2
xarray: +66 -76
parso: +13 -7
pydantic: +1 -1
spack: +22 -9
discord.py: +5 -4
pylint: +7 -4
scrapy: +2 -0
PyGithub: +2 -2
attrs: +17 -15
graphql-core: +0 -1
============================================================
FULL DIFF DETAILS
------------------------------------------------------------
pip (https://github.com/pypa/pip)
- ERROR src/pip/_internal/models/link.py:371:18-31: Implicit conversion of `str | Any | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/models/link.py:371:18-31: Implicit conversion of `Any | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/distlib/compat.py:1087:20-25: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR src/pip/_vendor/msgpack/fallback.py:726:32-40: The type of attribute `_default` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR src/pip/_vendor/msgpack/fallback.py:797:28-36: The type of attribute `_default` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR src/pip/_vendor/rich/align.py:199:12-25: Implicit conversion of `Literal['bottom', 'middle', 'top'] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/align.py:199:12-25: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/align.py:199:12-57: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/align.py:199:12-57: Implicit conversion of `Literal[''] | bool | None` to `bool` is not allowed [implicit-bool]
openlibrary (https://github.com/internetarchive/openlibrary)
- ERROR openlibrary/catalog/marc/marc_binary.py:137:23-71: Yielded type `tuple[str | Unknown | None, Unknown]` is not assignable to declared yield type `tuple[str, BinaryDataField | str]` [invalid-yield]
+ ERROR openlibrary/catalog/marc/marc_binary.py:137:23-71: Yielded type `tuple[Unknown | None, Unknown]` is not assignable to declared yield type `tuple[str, BinaryDataField | str]` [invalid-yield]
- ERROR openlibrary/catalog/marc/marc_binary.py:139:23-55: Yielded type `tuple[str | Unknown | None, BinaryDataField]` is not assignable to declared yield type `tuple[str, BinaryDataField | str]` [invalid-yield]
+ ERROR openlibrary/catalog/marc/marc_binary.py:139:23-55: Yielded type `tuple[Unknown | None, BinaryDataField]` is not assignable to declared yield type `tuple[str, BinaryDataField | str]` [invalid-yield]
+ ERROR openlibrary/plugins/upstream/models.py:316:29-32: The type of attribute `pop` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR openlibrary/plugins/upstream/models.py:349:29-32: The type of attribute `pop` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR openlibrary/plugins/worksearch/facets.py:223:48-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR openlibrary/plugins/worksearch/facets.py:223:70-71: The type of this argument is unknown [unknown-argument-type]
+ ERROR openlibrary/plugins/worksearch/facets.py:223:73-74: The type of this argument is unknown [unknown-argument-type]
+ ERROR openlibrary/solr/updater/work.py:189:20-25: Returning implicit Any from function declared to return "list[Unknown]" [no-any-return-implicit]
cloud-init (https://github.com/canonical/cloud-init)
- ERROR cloudinit/config/cc_disk_setup.py:940:14-20: Implicit conversion of `list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/config/cc_mounts.py:241:43-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/config/cc_set_passwords.py:85:49-56: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/handlers/__init__.py:110:13-22: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/handlers/__init__.py:133:13-22: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/mergers/m_list.py:54:23-25: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
+ ERROR cloudinit/mergers/m_list.py:56:32-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/mergers/m_list.py:61:32-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/mergers/m_list.py:78:48-58: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/net/__init__.py:1136:13-17: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/net/__init__.py:1139:32-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/net/__init__.py:1140:53-57: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/net/network_state.py:995:12-24: Implicit conversion of `int | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/net/network_state.py:995:12-24: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/net/network_state.py:1046:22-35: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/net/network_state.py:1047:10-17: Implicit conversion of `int | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/net/network_state.py:1047:10-17: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/net/network_state.py:1047:10-26: Implicit conversion of `Literal[0] | bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/net/network_state.py:1047:10-26: Implicit conversion of `bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/net/network_state.py:1048:42-49: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/net/network_state.py:1049:10-17: Implicit conversion of `int | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/net/network_state.py:1049:10-17: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/net/network_state.py:1049:10-26: Implicit conversion of `Literal[0] | bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/net/network_state.py:1049:10-26: Implicit conversion of `bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/net/network_state.py:1050:42-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/net/network_state.py:1054:32-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/netinfo.py:371:17-26: Cannot set item in `tuple[Unknown, ...]` [unsupported-operation]
- ERROR cloudinit/sources/DataSourceGCE.py:291:25-67: Cannot set item in `dict[str, bool | None]` [unsupported-operation]
+ ERROR cloudinit/sources/DataSourceGCE.py:291:25-67: `LiteralString | Unknown` is not assignable to dict key `reason` with type `None` [bad-assignment]
- ERROR cloudinit/sources/DataSourceGCE.py:315:29-39: Cannot set item in `dict[str, bool | None]` [unsupported-operation]
+ ERROR cloudinit/sources/DataSourceGCE.py:315:29-39: `str` is not assignable to dict key `reason` with type `None` [bad-assignment]
- ERROR cloudinit/sources/DataSourceGCE.py:348:24-26: Cannot set item in `dict[str, bool | None]` [unsupported-operation]
+ ERROR cloudinit/sources/DataSourceGCE.py:348:24-26: `dict[str, Unknown | None]` is not assignable to dict key `meta-data` with type `None` [bad-assignment]
+ ERROR cloudinit/sources/helpers/azure.py:1091:41-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/sources/helpers/azure.py:1093:16-21: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR cloudinit/stages.py:621:29-33: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/stages.py:921:54-67: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/stages.py:934:13-26: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/conftest.py:163:16-41: `not in` is not supported between `Unknown` and `None` [not-iterable]
- ERROR tests/conftest.py:166:48-64: No matching overload found for function `str.join` called with arguments: (Unknown | None) [no-matching-overload]
+ ERROR tests/conftest.py:166:40-64: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/conftest.py:166:49-63: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/unittests/sources/helpers/test_netlink.py:185:14-23: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR tests/unittests/sources/helpers/test_netlink.py:269:14-23: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
rotki (https://github.com/rotki/rotki)
- ERROR rotkehlchen/db/accounting_rules.py:831:92-106: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR rotkehlchen/db/accounting_rules.py:832:108-122: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR rotkehlchen/db/accounting_rules.py:833:108-122: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR rotkehlchen/db/accounting_rules.py:851:48-64: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR rotkehlchen/externalapis/blockscout.py:529:16-22: Returning Any from function declared to return "dict[str, Any] | int | list[dict[str, Any]] | str | None" [no-any-return-explicit]
bokeh (https://github.com/bokeh/bokeh)
- ERROR src/bokeh/core/property/wrappers.py:499:43-46: Argument `ndarray[tuple[int], dtype[Any | Unknown]] | ndarray[tuple[Any, ...], dtype[Any | Unknown]] | ndarray[tuple[Any, ...], Unknown] | ndarray[Unknown, Unknown] | Any` is not assignable to parameter `value` with type `Sequence[Any]` in function `dict.__setitem__` [bad-argument-type]
+ ERROR src/bokeh/core/property/wrappers.py:499:43-46: Argument `ndarray[tuple[int]] | ndarray | Any` is not assignable to parameter `value` with type `Sequence[Any]` in function `dict.__setitem__` [bad-argument-type]
- ERROR src/bokeh/models/ranges.py:114:12-16: Implicit conversion of `tuple[Unknown, Unknown] | tuple[Unknown, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR src/bokeh/models/ranges.py:114:12-16: Implicit conversion of `tuple[Unknown, ...]` to `bool` is not allowed [implicit-bool]
pytest (https://github.com/pytest-dev/pytest)
+ ERROR testing/test_reports.py:363:24-46: Argument `ExceptionInfo[BaseException] | TerminalRepr | str | tuple[str, int, str] | None` is not assignable to parameter `longrepr` with type `ExceptionChainRepr` in function `check_longrepr` [bad-argument-type]
+ ERROR testing/test_reports.py:368:9-42: Object of type `ExceptionInfo[BaseException] | TerminalRepr | str | tuple[str, int, str] | None` has no attribute `toterminal` [missing-attribute]
- ERROR testing/test_reports.py:360:25-54: The type of `loaded_report` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR testing/test_reports.py:360:38-48: The type of attribute `_from_json` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR testing/test_reports.py:362:30-36: The type of attribute `failed` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR testing/test_reports.py:363:24-46: The type of this argument is unknown [unknown-argument-type]
- ERROR testing/test_reports.py:363:38-46: The type of attribute `longrepr` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR testing/test_reports.py:368:23-31: The type of attribute `longrepr` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR testing/test_reports.py:368:32-42: The type of attribute `toterminal` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
pyjwt (https://github.com/jpadilla/pyjwt)
- ERROR jwt/algorithms.py:204:26-52: The type of this argument is unknown [unknown-argument-type]
- ERROR jwt/algorithms.py:204:44-50: The type of attribute `digest` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
jax (https://github.com/google/jax)
+ ERROR jax/_src/ad_checkpoint.py:554:59-82: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/api_util.py:468:15-24: The type of `axis_tree` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/_src/api_util.py:473:26-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/core.py:1817:26-27: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/core.py:1817:29-30: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/hijax.py:1008:31-129: The return type of this lambda is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR jax/_src/hypothesis_test_util.py:208:42-55: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/interpreters/ad.py:58:9-60:38: The return type of this lambda is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR jax/_src/interpreters/partial_eval.py:1813:33-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:534:45-64: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:537:45-62: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:539:27-44: The type of `feature_group_count` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/_src/lax/convolution.py:552:7-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:559:45-62: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:640:7-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:641:7-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:673:26-65: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:674:7-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:685:34-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:699:34-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:725:22-726:44: The type of `group_count` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/_src/lax/convolution.py:728:38-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:734:34-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:734:55-72: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/convolution.py:738:47-58: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:6543:54-57: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/linalg.py:2226:46-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/linalg.py:2226:49-50: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/parallel.py:163:38-55: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/parallel.py:167:55-72: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/lax_numpy.py:3007:29-50: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/setops.py:169:46-50: Implicit conversion of `Literal[0] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR jax/_src/numpy/setops.py:169:46-50: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR jax/_src/numpy/vectorize.py:162:12-15: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR jax/_src/ops/scatter.py:336:18-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/ops/scatter.py:395:18-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/ops/scatter.py:454:18-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/fuser/fuser_utils.py:266:14-16: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR jax/_src/pallas/mosaic/lowering.py:2317:14-46: The type of `ref_ty` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/pallas/mosaic/lowering.py:2317:24-38: The type of attribute `transform_type` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR jax/_src/pallas/mosaic/lowering.py:2320:30-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic/lowering.py:2317:39-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic/lowering.py:4156:7-8: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/pallas/mosaic/pallas_call_registration.py:777:7-30: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/pallas/mosaic/primitives.py:464:7-19: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/pallas/mosaic/primitives.py:465:7-19: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/pallas/mosaic/primitives.py:696:7-19: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:228:55-59: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:238:62-66: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:350:58-62: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic/sc_lowering.py:384:42-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/interpret/gpu_callbacks.py:654:9-12: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/interpret/gpu_callbacks.py:1314:11-14: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:1936:3-9: The type of `x_smem` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:1937:29-34: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:1953:11-17: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:1963:41-45: The type of attribute `type` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:1973:15-21: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:1982:52-58: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:1986:15-21: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2010:3-8: The type of `x_ref` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2011:29-34: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2097:3-9: The type of `x_smem` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2098:29-34: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2115:27-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2121:13-19: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2129:11-17: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2139:17-23: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2146:15-21: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2155:17-23: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/pallas/mosaic_gpu/lowering.py:2157:31-37: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/pallas/mosaic_gpu/primitives.py:2428:20-26: Implicit conversion of `Literal[1] | None` to `bool` is not allowed [implicit-bool]
+ ERROR jax/_src/pallas/mosaic_gpu/primitives.py:2428:20-26: Implicit conversion of `Literal[1] | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR jax/_src/pallas/mosaic_gpu/primitives.py:2445:12-31: Implicit conversion of `list[int] | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR jax/_src/pallas/mosaic_gpu/primitives.py:2445:12-31: Implicit conversion of `list[int | Unknown] | list[Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR jax/_src/pallas/triton/lowering.py:2549:6-15: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/random/prng.py:549:27-35: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/state/indexing.py:224:8-230:6: Implicit conversion of `list[TransformedRef | Any]` to `bool` is not allowed [implicit-bool]
+ ERROR jax/_src/state/indexing.py:224:8-230:6: Implicit conversion of `list[Any]` to `bool` is not allowed [implicit-bool]
- ERROR jax/_src/state/primitives.py:956:20-57: `-` is not supported between `None` and `int` [unsupported-operation]
+ ERROR jax/_src/state/primitives.py:956:20-57: The type of `out_bdim` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/state/primitives.py:985:45-52: Argument `Unknown | None` is not assignable to parameter `dst` with type `Sequence[int] | int` in function `jax._src.util.moveaxis` [bad-argument-type]
+ ERROR jax/_src/state/primitives.py:985:45-52: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/test_util.py:1359:32-38: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/test_util.py:1359:40-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/test_util.py:1360:27-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/test_util.py:1361:28-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/test_util.py:1986:27-28: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/xla_metadata.py:250:29-30: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/experimental/mosaic/gpu/fragmented_array.py:2273:29-38: The type of attribute `bit_count` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR jax/experimental/mosaic/gpu/tcgen05.py:1670:66-77: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/experimental/mosaic/gpu/tcgen05.py:1746:66-77: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/experimental/mosaic/gpu/utils.py:2435:11-21: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/experimental/mosaic/gpu/utils.py:2435:18-21: The type of attribute `lhs` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR jax/experimental/mosaic/gpu/utils.py:2436:32-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/experimental/mosaic/gpu/utils.py:2436:39-42: The type of attribute `rhs` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR jax/experimental/mosaic/gpu/utils.py:2440:11-21: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/experimental/mosaic/gpu/utils.py:2440:18-21: The type of attribute `lhs` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR jax/experimental/mosaic/gpu/utils.py:2441:32-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/experimental/mosaic/gpu/utils.py:2441:39-42: The type of attribute `rhs` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR jax/experimental/pallas/ops/tpu/splash_attention/splash_attention_mask_info.py:883:31-48: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/experimental/pallas/ops/tpu/splash_attention/splash_attention_mask_info.py:888:19-38: The type of `mask_next` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/experimental/pallas/ops/tpu/splash_attention/splash_attention_mask_info.py:907:11-28: The type of `current_mask_next` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/experimental/sparse/transform.py:965:10-16: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
spark (https://github.com/apache/spark)
+ ERROR python/pyspark/cloudpickle/cloudpickle.py:252:55-58: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/cloudpickle/cloudpickle.py:1061:31-34: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/cloudpickle/cloudpickle.py:1062:29-32: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/eval_handlers/_pandas.py:128:32-38: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/eval_handlers/_udtf.py:1130:57-60: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/ml/tests/test_persistence.py:234:34-43: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/ml/tests/test_persistence.py:234:37-43: The type of attribute `params` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR python/pyspark/ml/tests/test_persistence.py:235:17-18: The type of `p` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR python/pyspark/ml/tests/test_persistence.py:235:25-31: The type of attribute `params` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR python/pyspark/ml/tests/test_persistence.py:236:38-40: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/ml/tests/test_persistence.py:236:46-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/ml/tests/test_persistence.py:246:17-18: The type of `p` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR python/pyspark/ml/tests/test_persistence.py:246:25-31: The type of attribute `params` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR python/pyspark/ml/tests/test_persistence.py:247:38-40: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/ml/tests/test_persistence.py:247:46-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/ml/util.py:208:17-32: Object of class `HasTrainingSummary` has no attribute `_resetUid` [missing-attribute]
+ ERROR python/pyspark/pandas/frame.py:5864:25-26: The type of this argument is unknown [unknown-argument-type]
- ERROR python/pyspark/sql/connect/functions/builtin.py:5834:23-24: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/sql/connect/functions/builtin.py:5834:23-24: Implicit conversion of `((...) -> Any) | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/sql/functions/builtin.py:34420:23-24: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/sql/functions/builtin.py:34420:23-24: Implicit conversion of `((...) -> Any) | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/sql/pandas/functions.py:797:23-24: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/sql/pandas/functions.py:797:23-24: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/sql/pandas/functions.py:868:13-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/sql/pandas/functions.py:875:13-35: The type of this argument is unknown [unknown-argument-type]
- ERROR python/pyspark/sql/session.py:1236:66-72: Argument `list[str] | list[Unknown] | tuple[Unknown, ...] | None` is not assignable to parameter `names` with type `list[str] | None` in function `SparkSession._inferSchema` [bad-argument-type]
- ERROR python/pyspark/sql/session.py:1278:60-66: Argument `list[str] | list[Unknown] | tuple[Unknown, ...] | None` is not assignable to parameter `names` with type `list[str] | None` in function `SparkSession._inferSchemaFromList` [bad-argument-type]
+ ERROR python/pyspark/testing/pandasutils.py:150:26-30: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/testing/pandasutils.py:150:40-44: The type of this argument is unknown [unknown-argument-type]
+ ERROR python/pyspark/testing/pandasutils.py:150:74-78: The type of this argument is unknown [unknown-argument-type]
cwltool (https://github.com/common-workflow-language/cwltool)
+ ERROR cwltool/subgraph.py:146:30-33: Argument `Mapping[Unknown, Unknown] | Unknown` is not assignable to parameter `object` with type `str` in function `list.append` [bad-argument-type]
+ ERROR cwltool/subgraph.py:148:34-37: Argument `Mapping[Unknown, Unknown] | Unknown` is not assignable to parameter `nodeid` with type `str` in function `_declare_node` [bad-argument-type]
+ ERROR cwltool/subgraph.py:149:19-22: Cannot index into `dict[str, _Node]` [bad-index]
+ ERROR tests/test_dependencies.py:91:25-33: The type of this argument is unknown [unknown-argument-type]
prefect (https://github.com/PrefectHQ/prefect)
- ERROR src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py:1063:33-44: Implicit conversion of `Literal['FARGATE', 'FARGATE_SPOT'] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py:1063:33-44: Implicit conversion of `Literal['FARGATE'] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-dbt/prefect_dbt/cli/configs/bigquery.py:122:39-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/integrations/prefect-dbt/prefect_dbt/cli/configs/postgres.py:83:39-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/integrations/prefect-dbt/prefect_dbt/cli/configs/snowflake.py:127:39-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1125:16-21: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/prefect/_vendor/croniter/croniter.py:600:42-81: The type of `days_in_prev_month` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR src/prefect/_vendor/croniter/croniter.py:602:53-71: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/prefect/_vendor/croniter/croniter.py:1105:32-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/prefect/_vendor/croniter/croniter.py:1109:50-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/prefect/_vendor/croniter/croniter.py:1110:46-47: The type of this argument is unknown [unknown-argument-type]
- ERROR src/prefect/_vendor/croniter/croniter.py:1128:12-32: Implicit conversion of `dict[str | Unknown, set[Unknown]]` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/_vendor/croniter/croniter.py:1128:12-32: Implicit conversion of `dict[Unknown, set[Unknown]]` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/_vendor/croniter/croniter.py:1134:17-33: Implicit conversion of `set[str | Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/_vendor/croniter/croniter.py:1134:17-33: Implicit conversion of `set[str]` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/_vendor/croniter/croniter.py:1134:17-1135:82: Implicit conversion of `bool | set[str | Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/_vendor/croniter/croniter.py:1134:17-1135:82: Implicit conversion of `bool | set[str]` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/_vendor/croniter/croniter.py:1238:13-1240:14: Result of call expression is of type `tuple[list[list[Unknown]], dict[str | Unknown, set[Unknown]]]` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR src/prefect/_vendor/croniter/croniter.py:1238:13-1240:14: Result of call expression is of type `tuple[list[list[Unknown]], dict[Unknown, set[Unknown]]]` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR src/prefect/cli/automation.py:363:16-18: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/automation.py:363:27-31: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/automation.py:366:12-14: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/automation.py:383:14-18: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/block.py:570:27-51: Object of class `NoneType` has no attribute `model_dump` [missing-attribute]
+ ERROR src/prefect/cli/block.py:579:61-81: Object of class `NoneType` has no attribute `fields` [missing-attribute]
+ ERROR src/prefect/cli/block.py:581:43-63: Object of class `NoneType` has no attribute `fields` [missing-attribute]
- ERROR src/prefect/cli/deploy/_config.py:244:13-245:26: Implicit conversion of `Literal[False] | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/cli/deploy/_config.py:260:14-71: Implicit conversion of `Literal[False] | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/cli/deploy/_config.py:267:14-61: Implicit conversion of `Literal[False] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:459:21-30: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deployment.py:598:12-48: Object of class `NoneType` has no attribute `is_completed` [missing-attribute]
+ ERROR src/prefect/cli/deployment.py:600:54-82: Object of class `NoneType` has no attribute `name` [missing-attribute]
+ ERROR src/prefect/cli/deployment.py:603:43-71: Object of class `NoneType` has no attribute `name` [missing-attribute]
- ERROR src/prefect/cli/events.py:212:17-29: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/events.py:212:17-29: Implicit conversion of `dict[Unknown, Unknown] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/flow_run.py:763:8-26: Object of class `NoneType` has no attribute `is_completed` [missing-attribute]
+ ERROR src/prefect/cli/flow_run.py:764:64-74: Object of class `NoneType` has no attribute `name` [missing-attribute]
+ ERROR src/prefect/cli/flow_run.py:765:51-61: Object of class `NoneType` has no attribute `name` [missing-attribute]
+ ERROR src/prefect/cli/profile.py:303:12-18: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/profile.py:303:12-47: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/profile.py:309:8-14: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/profile.py:309:8-43: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/work_pool.py:1388:33-48: Object of class `NoneType` has no attribute `id` [missing-attribute]
+ ERROR src/prefect/events/clients.py:114:10-17: Implicit conversion of `str | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/events/clients.py:150:10-17: Implicit conversion of `str | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/flows.py:292:26-30: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/flows.py:292:26-30: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/flows.py:385:12-26: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/flows.py:385:12-74: Implicit conversion of `bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/logging/clients.py:116:10-17: Implicit conversion of `str | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/server/schemas/schedules.py:510:16-19: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/server/schemas/schedules.py:510:16-39: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/server/schemas/schedules.py:738:16-19: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/server/schemas/schedules.py:738:16-39: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/server/schemas/states.py:423:8-29: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/states.py:855:53-68: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/tasks.py:551:16-28: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/tasks.py:551:16-88: Implicit conversion of `Literal[False] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/workers/_worker_channel/_sync.py:232:12-21: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
python-chess (https://github.com/niklasf/python-chess)
- ERROR chess/engine.py:1338:26-43: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR chess/engine.py:1338:26-43: Implicit conversion of `str | Any | None` to `bool` is not allowed [implicit-bool]
cryptography (https://github.com/pyca/cryptography)
- ERROR src/cryptography/hazmat/asn1/asn1.py:214:21-45: The type of `root_type` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR src/cryptography/hazmat/asn1/asn1.py:214:32-45: The type of attribute `__asn1_root__` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
altair (https://github.com/vega/altair)
- ERROR altair/jupyter/jupyter_chart.py:70:32-37: The type of this argument is unknown [unknown-argument-type]
pyochain (https://github.com/OutSquareCapital/pyochain)
+ ERROR tests/test_sorted/_utils.py:88:13-30: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
alerta (https://github.com/alerta/alerta)
- ERROR alerta/models/alarms/alerta.py:149:16-22: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR alerta/models/alarms/alerta.py:149:16-22: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR alerta/models/alarms/alerta.py:248:16-22: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR alerta/models/alarms/alerta.py:248:16-22: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR alerta/models/alarms/alerta.py:248:16-48: Implicit conversion of `Literal[''] | bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR alerta/models/alarms/alerta.py:248:16-48: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR alerta/webhooks/telegram.py:97:39-45: The type of this argument is unknown [unknown-argument-type]
colour (https://github.com/colour-science/colour)
- ERROR colour/utilities/array.py:569:12-18: Implicit conversion of `tuple[ndarray[Unknown, Unknown] | Any, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR colour/utilities/array.py:569:12-18: Implicit conversion of `tuple[Any, ...]` to `bool` is not allowed [implicit-bool]
- ERROR colour/utilities/array.py:3334:18-19: Argument `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | ndarray[Any] | ndarray[Unknown, Unknown] | str` is not assignable to parameter `value` with type `SupportsFloat | SupportsIndex | bytes | str | None` in function `numpy.floating.__new__` [bad-argument-type]
+ ERROR colour/utilities/array.py:3334:18-19: Argument `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` is not assignable to parameter `value` with type `SupportsFloat | SupportsIndex | bytes | str | None` in function `numpy.floating.__new__` [bad-argument-type]
scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ ERROR sklearn/base.py:97:32-41: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/base.py:110:20-44: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR sklearn/base.py:110:34-43: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/cluster/_affinity_propagation.py:56:28-37: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/cluster/_affinity_propagation.py:56:50-59: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/cluster/_affinity_propagation.py:58:33-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/cluster/_affinity_propagation.py:58:55-64: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/cluster/_affinity_propagation.py:62:42-57: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/cluster/_affinity_propagation.py:64:47-62: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/cluster/_feature_agglomeration.py:52:35-58: Cannot index into `SparseABC` [bad-index]
- ERROR sklearn/cluster/_feature_agglomeration.py:52:40-52: Object of class `AgglomerationTransform` has no attribute `labels_` [missing-attribute]
+ ERROR sklearn/compose/_column_transformer.py:960:13-24: The type of `X` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/compose/_column_transformer.py:963:34-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/compose/_column_transformer.py:965:41-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/compose/_column_transformer.py:966:34-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/compose/_column_transformer.py:974:13-14: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/compose/_column_transformer.py:1033:13-24: The type of `X` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/compose/_column_transformer.py:1044:34-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/compose/_column_transformer.py:1045:43-44: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/compose/_column_transformer.py:1066:37-38: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/compose/_column_transformer.py:1071:13-14: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/compose/_column_transformer.py:1269:16-17: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR sklearn/datasets/_california_housing.py:183:13-59: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_california_housing.py:183:13-59: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_covtype.py:203:13-57: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_covtype.py:203:13-57: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_covtype.py:207:13-57: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_covtype.py:207:13-57: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_kddcup99.py:395:9-49: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_kddcup99.py:395:9-49: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_kddcup99.py:396:9-49: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_kddcup99.py:396:9-49: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_olivetti_faces.py:158:9-49: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_olivetti_faces.py:158:9-49: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_rcv1.py:224:9-49: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_rcv1.py:224:9-49: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_rcv1.py:225:9-59: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_rcv1.py:225:9-59: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_rcv1.py:285:9-55: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_rcv1.py:285:9-55: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_rcv1.py:286:9-57: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_rcv1.py:286:9-57: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_species_distributions.py:283:9-53: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_species_distributions.py:283:9-53: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sklearn/datasets/_twenty_newsgroups.py:563:9-79: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/datasets/_twenty_newsgroups.py:563:9-79: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/decomposition/tests/test_nmf.py:738:17-30: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/ensemble/_base.py:81:20-23: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/ensemble/_base.py:83:8-14: Implicit conversion of `dict[str | Unknown, int]` to `bool` is not allowed [implicit-bool]
+ ERROR sklearn/ensemble/_base.py:83:8-14: Implicit conversion of `dict[Unknown, int]` to `bool` is not allowed [implicit-bool]
- ERROR sklearn/ensemble/tests/test_common.py:158:16-47: The type of `ensemble` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR sklearn/ensemble/tests/test_common.py:162:18-21: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/ensemble/tests/test_common.py:158:25-35: Unexpected keyword argument `estimators` in function `object.__init__` [unexpected-keyword]
+ ERROR sklearn/ensemble/tests/test_common.py:162:9-21: Object of class `ClassifierMixin` has no attribute `fit` [missing-attribute]
- ERROR sklearn/ensemble/tests/test_common.py:180:16-47: The type of `ensemble` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR sklearn/ensemble/tests/test_common.py:184:18-21: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/ensemble/tests/test_common.py:191:16-47: The type of `ensemble` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR sklearn/ensemble/tests/test_common.py:195:18-21: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/ensemble/tests/test_common.py:202:16-47: The type of `ensemble` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR sklearn/ensemble/tests/test_common.py:206:18-21: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/ensemble/tests/test_common.py:180:25-35: Unexpected keyword argument `estimators` in function `object.__init__` [unexpected-keyword]
+ ERROR sklearn/ensemble/tests/test_common.py:184:9-21: Object of class `ClassifierMixin` has no attribute `fit` [missing-attribute]
+ ERROR sklearn/ensemble/tests/test_common.py:191:25-35: Unexpected keyword argument `estimators` in function `object.__init__` [unexpected-keyword]
+ ERROR sklearn/ensemble/tests/test_common.py:195:9-21: Object of class `ClassifierMixin` has no attribute `fit` [missing-attribute]
+ ERROR sklearn/ensemble/tests/test_common.py:202:25-35: Unexpected keyword argument `estimators` in function `object.__init__` [unexpected-keyword]
+ ERROR sklearn/ensemble/tests/test_common.py:206:9-21: Object of class `ClassifierMixin` has no attribute `fit` [missing-attribute]
- ERROR sklearn/linear_model/_logistic.py:815:16-22: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:661:25-26: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:663:29-30: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/_ridge.py:665:29-36: Object of class `SparseABC` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/linear_model/_ridge.py:665:5-14: The type of `n_samples` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/linear_model/_ridge.py:665:16-26: The type of `n_features` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/linear_model/_ridge.py:665:31-36: The type of attribute `shape` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/_ridge.py:682:70-77: Object of class `SparseABC` has no attribute `dtype` [missing-attribute]
+ ERROR sklearn/linear_model/_ridge.py:682:61-62: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:682:64-77: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:682:72-77: The type of attribute `dtype` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/_ridge.py:687:54-55: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/_ridge.py:690:59-66: Object of class `SparseABC` has no attribute `dtype` [missing-attribute]
+ ERROR sklearn/linear_model/_ridge.py:690:61-66: The type of attribute `dtype` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/_ridge.py:708:13-14: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:721:13-14: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/_ridge.py:734:36-39: Object of class `SparseABC` has no attribute `T` [missing-attribute]
+ ERROR sklearn/linear_model/_ridge.py:734:33-34: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:734:36-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:734:38-39: The type of attribute `T` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/_ridge.py:738:40-43: Object of class `SparseABC` has no attribute `T` [missing-attribute]
+ ERROR sklearn/linear_model/_ridge.py:738:40-43: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:738:42-43: The type of attribute `T` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/_ridge.py:744:40-41: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:751:37-38: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/_ridge.py:753:57-64: Object of class `SparseABC` has no attribute `dtype` [missing-attribute]
+ ERROR sklearn/linear_model/_ridge.py:753:51-64: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:753:59-64: The type of attribute `dtype` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/_ridge.py:755:51-58: Object of class `SparseABC` has no attribute `dtype` [missing-attribute]
+ ERROR sklearn/linear_model/_ridge.py:755:45-58: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:755:53-58: The type of attribute `dtype` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/_ridge.py:758:81-88: Object of class `SparseABC` has no attribute `dtype` [missing-attribute]
+ ERROR sklearn/linear_model/_ridge.py:758:75-88: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:758:83-88: The type of attribute `dtype` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/_ridge.py:761:17-18: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:788:13-14: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/_ridge.py:802:27-28: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:853:11-30: The type of `reg` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:854:13-29: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:854:9-12: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:855:12-31: The type of `reg1` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:856:14-48: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:856:10-13: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1287:38-41: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1292:21-24: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1287:42-76: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1292:25-59: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1367:31-34: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1425:32-35: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1425:42-71: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1426:32-35: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1478:33-60: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1477:24-1479:6: The type of `reg_with_weights` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1481:22-25: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1496:28-1498:6: The type of `reg_with_repetitions` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1499:26-29: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1502:21-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1497:37-64: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1502:38-47: The type of attribute `mse_path_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1502:49-79: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1502:70-79: The type of attribute `mse_path_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1503:21-45: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1503:38-45: The type of attribute `alphas_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1503:47-75: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1503:68-75: The type of attribute `alphas_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1508:29-39: The type of attribute `intercept_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1508:57-88: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1508:78-88: The type of attribute `intercept_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1541:11-64: The type of `reg` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1542:13-14: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1542:9-12: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1542:16-17: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1552:16-25: The type of attribute `l1_ratio_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1594:31-34: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1594:21-29: Unexpected keyword argument `precompute` in function `sklearn.linear_model._coordinate_descent.MultiTaskElasticNetCV.__init__` [unexpected-keyword]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1594:21-29: Unexpected keyword argument `precompute` in function `sklearn.linear_model._coordinate_descent.MultiTaskLassoCV.__init__` [unexpected-keyword]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1655:11-64: The type of `reg` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1655:21-43: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1656:9-12: The type of attribute `fit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1655:55-63: Unexpected keyword argument `positive` in function `sklearn.linear_model._coordinate_descent.MultiTaskElasticNet.__init__` [unexpected-keyword]
+ ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1656:19-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/linear_model/tests/test_ridge.py:2155:9-22: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/metrics/_classification.py:824:29-44: Object of class `SparseABC` has no attribute `multiply` [missing-attribute]
+ ERROR sklearn/metrics/_classification.py:824:29-52: The type of `true_and_pred` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/metrics/_classification.py:824:36-44: The type of attribute `multiply` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR sklearn/metrics/_classification.py:830:13-26: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/metrics/_plot/det_curve.py:335:19-70: The type of `y_score` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/metrics/_plot/det_curve.py:337:21-28: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/metrics/_plot/det_curve.py:342:13-20: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/metrics/_plot/precision_recall_curve.py:698:19-70: The type of `y_score` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR sklearn/metrics/_plot/precision_recall_curve.py:700:21-28: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/metrics/_plot/precision_recall_curve.py:705:13-20: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/metrics/_plot/precision_recall_curve.py:711:21-28: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/metrics/pairwise.py:1073:22-37: No matching overload found for function `scipy.sparse._csr.csr_array.__init__` called with arguments: (SparseABC | Unknown, copy=Literal[False]) [no-matching-overload]
- ERROR sklearn/metrics/pairwise.py:1074:22-37: No matching overload found for function `scipy.sparse._csr.csr_array.__init__` called with arguments: (SparseABC | Unknown, copy=Literal[False]) [no-matching-overload]
+ ERROR sklearn/metrics/pairwise.py:1073:23-24: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/metrics/pairwise.py:1074:23-24: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/metrics/pairwise.py:2259:51-52: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/metrics/tests/test_score_objects.py:185:5-40: Result of call expression is of type `list[str | Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/metrics/tests/test_score_objects.py:185:5-40: Result of call expression is of type `list[Unknown] | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sklearn/model_selection/_split.py:375:29-41: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
... (truncated 130 lines) ...
freqtrade (https://github.com/freqtrade/freqtrade)
- ERROR freqtrade/exchange/binance.py:482:40-53: Argument `Literal[''] | int | Any` is not assignable to parameter `timestamp` with type `float` in function `freqtrade.util.datetime_helpers.dt_from_ts` [bad-argument-type]
+ ERROR freqtrade/optimize/hyperopt_loss/hyperopt_loss_max_drawdown_per_pair.py:59:16-36: Returning implicit Any from function declared to return "float" [no-any-return-implicit]
more-itertools (https://github.com/more-itertools/more-itertools)
- ERROR more_itertools/more.py:237:35-36: Argument `Unknown | None` is not assignable to parameter `n` with type `int` [bad-argument-type]
+ ERROR more_itertools/more.py:237:35-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR more_itertools/more.py:2784:42-46: The type of this argument is unknown [unknown-argument-type]
- ERROR more_itertools/more.py:3731:33-38: `-` is not supported between `None` and `Literal[1]` [unsupported-operation]
+ ERROR more_itertools/more.py:3731:33-38: The type of this argument is unknown [unknown-argument-type]
setuptools (https://github.com/pypa/setuptools)
- ERROR setuptools/_distutils/dist.py:718:48-55: Argument `type[Any] | Unknown` is not assignable to parameter `command` with type `str` in function `Distribution.get_command_class` [bad-argument-type]
+ ERROR setuptools/_distutils/dist.py:718:48-55: The type of this argument is unknown [unknown-argument-type]
- ERROR setuptools/_distutils/fancy_getopt.py:180:20-25: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR setuptools/_distutils/fancy_getopt.py:180:20-25: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR setuptools/_distutils/fancy_getopt.py:222:16-21: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR setuptools/_distutils/fancy_getopt.py:222:16-21: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR setuptools/_vendor/more_itertools/more.py:2711:42-46: The type of this argument is unknown [unknown-argument-type]
apprise (https://github.com/caronc/apprise)
- ERROR apprise/attachment/http.py:344:34-44: Implicit conversion of `Literal[0] | bool | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/attachment/http.py:344:34-44: Implicit conversion of `bool | int | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/fcm/color.py:101:14-24: Implicit conversion of `Literal[False] | Match[str] | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/fcm/color.py:101:14-24: Implicit conversion of `Match[str] | bool | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/fcm/color.py:103:20-36: `+` is not supported between `Literal['#']` and `Literal[True]` [unsupported-operation]
pycryptodome (https://github.com/Legrandin/pycryptodome)
+ ERROR lib/Crypto/SelfTest/Protocol/test_KDF.py:1069:41-47: Object of class `str` has no attribute `kin` [missing-attribute]
+ ERROR lib/Crypto/SelfTest/Protocol/test_KDF.py:1069:49-57: Object of class `str` has no attribute `label` [missing-attribute]
+ ERROR lib/Crypto/SelfTest/Protocol/test_KDF.py:1069:59-69: Object of class `str` has no attribute `context` [missing-attribute]
+ ERROR lib/Crypto/SelfTest/Protocol/test_KDF.py:1069:71-78: Object of class `str` has no attribute `kout` [missing-attribute]
+ ERROR lib/Crypto/SelfTest/PublicKey/test_ElGamal.py:177:21-22: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/Crypto/SelfTest/PublicKey/test_ElGamal.py:177:44-45: The type of this argument is unknown [unknown-argument-type]
psycopg (https://github.com/psycopg/psycopg)
+ ERROR tests/fix_faker.py:241:20-23: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/fix_faker.py:244:13-16: The type of `cls` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR tests/fix_faker.py:245:28-31: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_cursor_server.py:368:33-44: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_cursor_server_async.py:374:33-44: The type of this argument is unknown [unknown-argument-type]
manticore (https://github.com/trailofbits/manticore)
- ERROR manticore/core/smtlib/constraints.py:361:38-49: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/constraints.py:363:36-52: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/constraints.py:363:48-52: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:640:25-42: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/native/cpu/arm.py:708:12-23: Implicit conversion of `BoolEqual | bool | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR manticore/native/cpu/arm.py:706:40-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR manticore/native/cpu/arm.py:714:33-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR manticore/native/cpu/arm.py:716:33-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR manticore/native/cpu/arm.py:718:33-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR manticore/native/cpu/arm.py:720:33-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR manticore/native/cpu/x86.py:3226:21-25: The type of this argument is unknown [unknown-argument-type]
+ ERROR manticore/native/cpu/x86.py:6334:61-69: The type of this argument is unknown [unknown-argument-type]
+ ERROR manticore/platforms/evm.py:1416:32-36: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/platforms/linux.py:2583:23-30: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- ERROR pymongo/client_options.py:179:9-22: Argument `Any | None` is not assignable to parameter `max_pool_size` with type `int` in function `pymongo.pool_options.PoolOptions.__init__` [bad-argument-type]
+ ERROR pymongo/common.py:528:12-17: Returning Any from function declared to return "type[MutableMapping[str, Any] | RawBSONDocument]" [no-any-return-explicit]
schemathesis (https://github.com/schemathesis/schemathesis)
- ERROR src/schemathesis/engine/run/unit/_errors.py:144:32-35: Argument `BaseExceptionGroup | Exception | Flaky` is not assignable to parameter `exc` with type `AssertionError | Flaky` in function `_classify_flaky` [bad-argument-type]
+ ERROR src/schemathesis/engine/run/unit/_errors.py:144:32-35: Argument `BaseExceptionGroup | Exception` is not assignable to parameter `exc` with type `AssertionError | Flaky` in function `_classify_flaky` [bad-argument-type]
- ERROR src/schemathesis/specs/openapi/adapter/parameters.py:362:12-17: Implicit conversion of `tuple[tuple[bytes | float | int | str, Origin | None], ...]` to `bool` is not allowed [implicit-bool]
+ ERROR src/schemathesis/specs/openapi/adapter/parameters.py:362:12-17: Implicit conversion of `tuple[tuple[ConstantValue, Origin | None], ...]` to `bool` is not allowed [implicit-bool]
+ ERROR src/schemathesis/specs/openapi/checks.py:550:37-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/schemathesis/specs/openapi/coverage/_operation.py:806:36-44: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/schemathesis/specs/openapi/coverage/_schema.py:1933:28-38: The type of this argument is unknown [unknown-argument-type]
- ERROR src/schemathesis/specs/openapi/coverage/_schema.py:3713:51-55: The type of this argument is unknown [unknown-argument-type]
- ERROR src/schemathesis/specs/openapi/coverage/_schema.py:3717:12-16: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/schemathesis/transport/wsgi.py:277:60-67: The type of this argument is unknown [unknown-argument-type]
beartype (https://github.com/beartype/beartype)
- ERROR beartype/_conf/conftest.py:81:13-27: Implicit conversion of `Any | None` to `bool` is not allowed [implicit-bool]
- ERROR beartype/_conf/conftest.py:89:13-27: Implicit conversion of `Any | None` to `bool` is not allowed [implicit-bool]
- ERROR beartype/_conf/conftest.py:96:13-27: Implicit conversion of `Any | None` to `bool` is not allowed [implicit-bool]
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- ERROR src/hydra_zen/structured_configs/_implementations.py:967:34-39: Explicit `Any` is not allowed [explicit-any]
pandera (https://github.com/pandera-dev/pandera)
- ERROR pandera/api/dataframe/container.py:1310:34-51: Object of class `NoneType` has no attribute `columns` [missing-attribute]
+ ERROR pandera/api/dataframe/container.py:1310:34-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/api/dataframe/container.py:1310:44-51: The type of attribute `columns` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR pandera/api/ibis/model.py:101:17-104:25: Implicit conversion of `Literal[True] | type[Any] | type[DataType | Unknown] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR pandera/api/ibis/model.py:101:17-104:25: Implicit conversion of `Literal[True] | type[Any] | type[DataType] | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR pandera/api/pyarrow/model.py:141:12-46: Implicit conversion of `Literal[True] | type[Any] | type[DataType | Unknown] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR pandera/api/pyarrow/model.py:141:12-46: Implicit conversion of `Literal[True] | type[Any] | type[DataType] | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR pandera/backends/pandas/checks.py:60:20-69:14: Returned type `dict[bool | tuple[Unknown, ...] | Unknown, DataFrame | Series[Unknown]]` is not assignable to declared return type `dict[Hashable, DataFrame] | dict[Hashable, Series]` [bad-return]
+ ERROR pandera/backends/pandas/checks.py:60:20-69:14: Returned type `dict[tuple[Unknown, ...] | Unknown, DataFrame | Series[Unknown]]` is not assignable to declared return type `dict[Hashable, DataFrame] | dict[Hashable, Series]` [bad-return]
+ ERROR pandera/backends/pandas/hypotheses.py:105:50-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/engines/engine.py:253:27-48: The type of `datatype_origin` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandera/engines/engine.py:255:60-75: The type of this argument is unknown [unknown-argument-type]
- ERROR pandera/engines/pandas_engine.py:247:34-57: The type of `np_or_pd_dtype` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR pandera/engines/pandas_engine.py:247:44-57: The type of attribute `pyarrow_dtype` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR pandera/engines/pandas_engine.py:250:38-49: The type of `np_or_pd_dtype` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR pandera/engines/pandas_engine.py:254:25-44: The type of this argument is unknown [unknown-argument-type]
- ERROR pandera/engines/pandas_engine.py:254:40-44: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandera/io/_check_io.py:11:16-22: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR pandera/io/_flat_checks.py:137:19-21: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/ibis_io.py:37:27-31: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/ibis_io.py:40:32-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/ibis_io.py:40:47-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/ibis_io.py:42:16-20: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR pandera/io/pandas_io.py:50:23-27: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/pandas_io.py:57:28-32: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/pandas_io.py:57:43-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/pandas_io.py:59:16-20: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR pandera/io/polars_io.py:40:27-31: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/polars_io.py:43:32-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/polars_io.py:43:47-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/polars_io.py:45:16-20: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR pandera/io/pyspark_sql_io.py:37:27-31: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/pyspark_sql_io.py:40:32-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/pyspark_sql_io.py:40:47-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/io/pyspark_sql_io.py:42:16-20: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR pandera/io/xarray_io.py:171:27-30: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/io/test_check_io.py:17:16-19: Argument `list[dict[str, Unknown] | dict[Unknown, Unknown]] | Unknown | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR tests/io/test_check_io.py:18:12-18: `None` is not subscriptable [unsupported-operation]
- ERROR tests/io/test_check_io.py:19:12-18: `None` is not subscriptable [unsupported-operation]
- ERROR tests/io/test_pandas_io.py:2257:37-45: Argument `type[Any] | Unknown` is not assignable to parameter `other` with type `DataFrame | Series` in function `pandas.core.frame.DataFrame.equals` [bad-argument-type]
+ ERROR tests/io/test_pandas_io.py:2257:37-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/tensordict/test_tensordict_io.py:123:22-39: Object of class `dict` has no attribute `batch_size` [missing-attribute]
streamlit (https://github.com/streamlit/streamlit)
+ ERROR lib/streamlit/elements/widgets/slider.py:1222:12-24: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR lib/streamlit/elements/widgets/slider.py:1105:48-57: The type of this argument is unknown [unknown-argument-type]
- ERROR lib/streamlit/elements/widgets/slider.py:1113:36-45: The type of this argument is unknown [unknown-argument-type]
stone (https://github.com/dropbox/stone)
+ ERROR stone/_vendor/ply/yacc.py:1725:37-38: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/_vendor/ply/yacc.py:2993:21-60: The type of `eline` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR stone/_vendor/ply/yacc.py:2993:26-36: The type of attribute `error_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2993:37-45: The type of attribute `__code__` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2993:46-60: The type of attribute `co_firstlineno` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2994:21-57: The type of `efile` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR stone/_vendor/ply/yacc.py:2994:26-36: The type of attribute `error_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2994:37-45: The type of attribute `__code__` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2994:46-57: The type of attribute `co_filename` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2995:40-55: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/_vendor/ply/yacc.py:2995:45-55: The type of attribute `error_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2998:24-71: The type of `argcount` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR stone/_vendor/ply/yacc.py:2998:29-39: The type of attribute `error_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2998:40-48: The type of attribute `__code__` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:2998:49-60: The type of attribute `co_argcount` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR stone/_vendor/ply/yacc.py:3000:72-77: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/_vendor/ply/yacc.py:3000:79-84: The type of this argument is unknown [unknown-argument-type]
+ ERROR stone/_vendor/ply/yacc.py:3359:13-16: The type of `inf` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR stone/_vendor/ply/yacc.py:3360:73-76: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/backends/python_rsrc/stone_serializers.py:164:25-34: The type of this argument is unknown [unknown-argument-type]
- ERROR stone/frontend/ir_generator.py:708:53-62: The type of this argument is unknown [unknown-argument-type]
+ ERROR stone/frontend/lexer.py:91:20-25: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
antidote (https://github.com/Finistere/antidote)
+ ERROR src/antidote/lib/interface_ext/_interface.py:184:24-186:34: The type of `impl` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/antidote/lib/interface_ext/_interface.py:187:67-83: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/antidote/lib/interface_ext/_interface.py:187:72-83: The type of attribute `__wrapped__` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
ibis (https://github.com/ibis-project/ibis)
+ ERROR ibis/backends/bigquery/__init__.py:1240:41-44: Argument `DataFrame | Table | Unknown` is not assignable to parameter `expr` with type `Expr` in function `ibis.backends.BaseBackend._run_pre_execute_hooks` [bad-argument-type]
+ ERROR ibis/backends/bigquery/__init__.py:1278:62-65: Argument `DataFrame | Table | Unknown` is not assignable to parameter `expr` with type `Expr` in function `Backend.compile` [bad-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:29:20-24: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:29:49-54: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:30:17-24: The type of attribute `_fields` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:30:34-41: The type of attribute `_fields` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:31:20-24: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:31:26-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:31:46-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:31:53-63: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:32:13-22: The type of `left_name` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:32:24-34: The type of `right_name` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:32:42-54: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:32:47-54: The type of attribute `_fields` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:32:56-69: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/bigquery/tests/unit/udf/test_find.py:32:62-69: The type of attribute `_fields` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR ibis/backends/datafusion/__init__.py:141:18-47: Implicit conversion of `Literal[False] | Mapping[str, Path | str] | Mapping[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR ibis/backends/datafusion/__init__.py:141:18-47: Implicit conversion of `Literal[False] | Mapping[str, Path | str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR ibis/backends/materialize/__init__.py:300:28-31: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR ibis/backends/sql/compilers/pyspark.py:360:20-22: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/backends/sql/compilers/snowflake.py:843:43-50: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/common/patterns.py:55:25-28: The type of this argument is unknown [unknown-argument-type]
- ERROR ibis/common/patterns.py:794:26-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/expr/datatypes/core.py:137:46-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/expr/decompile.py:412:37-41: The type of this argument is unknown [unknown-argument-type]
- ERROR ibis/expr/operations/window.py:113:26-33: The type of this argument is unknown [unknown-argument-type]
- ERROR ibis/expr/types/strings.py:110:42-47: Argument `Expr | Any | None` is not assignable to parameter `start` with type `Value[Integer] | None` in function `ibis.expr.operations.strings.StringSlice.__init__` [bad-argument-type]
- ERROR ibis/expr/types/strings.py:110:49-53: Argument `Expr | Any | None` is not assignable to parameter `end` with type `Value[Integer] | None` in function `ibis.expr.operations.strings.StringSlice.__init__` [bad-argument-type]
- ERROR ibis/util.py:537:18-23: Implicit conversion of `Any | None` to `bool` is not allowed [implicit-bool]
vision (https://github.com/pytorch/vision)
+ ERROR torchvision/models/googlenet.py:97:51-57: The type of attribute `weight` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR torchvision/models/inception.py:89:80-94: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR torchvision/models/inception.py:90:51-57: The type of attribute `weight` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR torchvision/transforms/v2/_augment.py:258:22-73: The type of `output` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR torchvision/transforms/v2/_augment.py:258:27-31: The type of attribute `roll` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR torchvision/transforms/v2/_augment.py:258:38-42: The type of attribute `mul_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR torchvision/transforms/v2/_augment.py:258:54-58: The type of attribute `add_` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR torchvision/transforms/v2/_augment.py:258:64-67: The type of attribute `mul` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR torchvision/transforms/v2/_augment.py:325:22-37: The type of `rolled` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR torchvision/transforms/v2/_augment.py:325:27-31: The type of attribute `roll` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR torchvision/transforms/v2/_augment.py:326:22-34: The type of `output` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR torchvision/transforms/v2/_augment.py:326:27-32: The type of attribute `clone` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR torchvision/transforms/v2/_misc.py:472:22-43: The type of `output` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR torchvision/transforms/v2/_misc.py:565:18-39: The type of `output` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
strawberry (https://github.com/strawberry-graphql/strawberry)
- ERROR strawberry/schema/exception_handlers.py:101:12-20: Returned type `tuple[bytes | str | Any]` is not assignable to declared return type `tuple[type[Exception], ...]` [bad-return]
sockeye (https://github.com/awslabs/sockeye)
+ ERROR sockeye/layers.py:685:13-35: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR sockeye/layers.py:692:13-33: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR sockeye/model.py:496:16-20: The type of this argument is unknown [unknown-argument-type]
zulip (https://github.com/zulip/zulip)
- ERROR zerver/migrations/0298_fix_realmauditlog_format.py:81:21-37: The type of `old_value` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR zerver/migrations/0298_fix_realmauditlog_format.py:82:21-37: The type of `new_value` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR zerver/migrations/0298_fix_realmauditlog_format.py:83:16-35: The type of `prop` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR zerver/migrations/0298_fix_realmauditlog_format.py:94:24-28: The type of this argument is unknown [unknown-argument-type]
- ERROR zerver/migrations/0298_fix_realmauditlog_format.py:97:24-28: The type of this argument is unknown [unknown-argument-type]
zope.interface (https://github.com/zopefoundation/zope.interface)
+ ERROR src/zope/interface/declarations.py:619:13-14: The type of `b` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/zope/interface/declarations.py:621:37-38: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/zope/interface/declarations.py:622:26-27: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/zope/interface/verify.py:109:43-47: The type of this argument is unknown [unknown-argument-type]
static-frame (https://github.com/static-frame/static-frame)
- ERROR static_frame/core/index.py:1365:13-39: Result of call expression is of type `Any | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR static_frame/core/index.py:1563:34-48: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR static_frame/core/index_hierarchy.py:2624:13-39: Result of call expression is of type `Any | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR static_frame/core/interface.py:1449:40-46: Cannot set item in `dict[type[ContainerBase], ContainerBase]` [unsupported-operation]
+ ERROR static_frame/core/interface.py:1450:43-49: Cannot index into `dict[type[ContainerBase], ContainerBase]` [bad-index]
- ERROR static_frame/core/quilt.py:1559:13-39: Result of call expression is of type `Any | None` and is not used; assign to `_` if this is intentional [unused-call-result]
hydpy (https://github.com/hydpy-dev/hydpy)
- ERROR hydpy/core/modeltools.py:2566:41-51: `None` is not subscriptable [unsupported-operation]
- ERROR hydpy/core/modeltools.py:2583:29-39: `None` is not subscriptable [unsupported-operation]
pandas (https://github.com/pandas-dev/pandas)
- ERROR pandas/core/apply.py:961:35-46: Implicit conversion of `bool | str` to `bool` is not allowed [implicit-bool]
+ ERROR pandas/core/apply.py:961:35-46: Implicit conversion of `Literal['_compat', 'compat', False]` to `bool` is not allowed [implicit-bool]
- ERROR pandas/core/apply.py:1727:5-11: Class member `SeriesApply.by_row` overrides parent class `NDFrameApply` in an inconsistent manner [bad-override-mutable-attribute]
- ERROR pandas/core/apply.py:1898:35-46: Implicit conversion of `bool | str` to `bool` is not allowed [implicit-bool]
+ ERROR pandas/core/apply.py:1898:35-46: Implicit conversion of `Literal['_compat', 'compat', False]` to `bool` is not allowed [implicit-bool]
+ ERROR pandas/core/arrays/arrow/array.py:830:39-44: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/core/arrays/arrow/array.py:1003:73-78: Argument `ExtensionArray | ndarray | ndarray[Unknown, Unknown] | Unknown` is not assignable to parameter `values` with type `Collection[Any]` in function `pandas.core.dtypes.cast.construct_1d_object_array_from_listlike` [bad-argument-type]
+ ERROR pandas/core/arrays/arrow/array.py:1003:73-78: Argument `ExtensionArray | ndarray | Unknown` is not assignable to parameter `values` with type `Collection[Any]` in function `pandas.core.dtypes.cast.construct_1d_object_array_from_listlike` [bad-argument-type]
+ ERROR pandas/core/arrays/arrow/array.py:1633:42-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/arrow/array.py:3213:40-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/base.py:3534:31-36: The type of `ovalues` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR pandas/core/arrays/boolean.py:417:53-58: Argument `NAType | builtins.bool | numpy.bool | Unknown` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR pandas/core/arrays/boolean.py:421:54-59: Argument `NAType | builtins.bool | numpy.bool | Unknown` is not assignable to parameter `right` with type `NAType | builtins.bool | ndarray` in function `pandas.core.ops.mask_ops.kleene_or` [bad-argument-type]
- ERROR pandas/core/arrays/boolean.py:423:55-60: Argument `NAType | builtins.bool | numpy.bool | Unknown` is not assignable to parameter `right` with type `NAType | builtins.bool | ndarray` in function `pandas.core.ops.mask_ops.kleene_and` [bad-argument-type]
- ERROR pandas/core/arrays/boolean.py:426:55-60: Argument `NAType | builtins.bool | numpy.bool | Unknown` is not assignable to parameter `right` with type `NAType | builtins.bool | ndarray` in function `pandas.core.ops.mask_ops.kleene_xor` [bad-argument-type]
+ ERROR pandas/core/arrays/boolean.py:417:53-58: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/boolean.py:421:54-59: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/boolean.py:423:55-60: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/boolean.py:426:55-60: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/categorical.py:189:37-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/categorical.py:201:61-66: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/categorical.py:1791:46-52: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandas/core/arrays/categorical.py:1797:25-31: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/core/arrays/datetimelike.py:499:47-71: Unused `# type: ignore` comment [unused-type-ignore]
... (truncated 548 lines) ... |
stroxler
approved these changes
Oct 16, 2026
stroxler
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 56b76e7. |
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 #5255
When a condition like
x is not None and flagis negated in anelsebranch, Pyrefly producesOr([Is(None), Placeholder])forx, which previously narrowed gradual types (Any/Unknown) toNonein one arm andUnknownin the other before unioning them intoUnknown | None.This change short-circuits
NarrowOptrees that impose no constraint (such as anOrwith aPlaceholderbranch) sonarrowreturns the originalTypeInfounchanged and preserves existing facet narrows. It also updatesNarrowOp::Orto join branches usingJoinStyle::NarrowOf(type_info)instead ofJoinStyle::SimpleMerge, ensuring that when a branch fails to narrow a gradual type collapses back toAny/Unknownrather than forming a spurious union.Finally, the subset simplification check in
join_types_implis guarded with!base_ty.is_any()so thatOrconditions where every branch narrowsAnyto a concrete type (e.g.,isinstance(x, int) or isinstance(x, str)) still produceint | str.