Keep the declared type when Any is assigned to an annotated variable - #4568
Open
markselby9 wants to merge 1 commit into
Open
Keep the declared type when Any is assigned to an annotated variable#4568markselby9 wants to merge 1 commit into
markselby9 wants to merge 1 commit into
Conversation
Problem to fix: Assigning an Any value to a variable with a declared type erased the annotation. `x: str = "hello"; x = f()` (where `f() -> Any`) made `x` become `Any`, which broke `assert_type` and silenced later checks on `x`. Approach: name_assign_infer already kept the declared type when the first assignment after a bare annotation is Any; extend that to later reassignments too, since Any carries no information to narrow with. This matches pyright/mypy and the for-loop / `with as` paths that already preserve the declared type. Fixes 8 bug-marked tests. Attribute, unpacking, and walrus targets are separate paths, left for follow-up.
Contributor
|
This pull request has been imported. If you are a Meta employee, you can view this in D116265691. (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: +1222 new errors, -1222 fixed errors
Projects with changes (84):
pip: +11 -9
mkdocs: +1 -0
cloud-init: +8 -14
openlibrary: +1 -10
aioredis: +3 -2
egglog-python: +6 -0
packaging: +2 -0
cki-lib: +2 -2
mitmproxy: +3 -2
rotki: +3 -1
dulwich: +1 -1
steam.py: +2 -3
pytest: +4 -9
jax: +104 -359
cwltool: +5 -4
spark: +117 -28
altair: +1 -3
prefect: +40 -14
scipy: +67 -33
colour: +8 -12
urllib3: +3 -3
scikit-learn: +8 -11
aiortc: +0 -2
materialize: +1 -2
freqtrade: +7 -6
pwndbg: +4 -4
setuptools: +5 -1
scikit-build-core: +2 -2
pycryptodome: +1 -0
apprise: +3 -0
bidict: +0 -1
operator: +4 -3
manticore: +4 -3
mongo-python-driver: +24 -64
schemathesis: +2 -3
PyWinCtl: +4 -3
beartype: +2 -6
streamlit: +28 -3
hydra-zen: +6 -6
pandera: +14 -14
pytest-autoprofile: +2 -2
antidote: +2 -0
ibis: +60 -10
strawberry: +1 -4
vision: +69 -36
zulip: +14 -8
sockeye: +0 -1
ignite: +3 -2
pywin32: +1 -1
static-frame: +5 -18
hydpy: +93 -11
dd-trace-py: +47 -47
websockets: +0 -1
pandas: +45 -74
pyodide: +7 -0
meson: +6 -4
werkzeug: +4 -3
mypy: +4 -7
speedrun.com_global_scoreboard_webapp: +0 -1
core: +77 -232
paroxython: +0 -2
trio: +1 -0
paasta: +9 -13
jinja: +2 -0
sphinx: +2 -3
xarray: +14 -33
AutoSplit: +0 -1
spack: +10 -8
kornia: +171 -9
poetry: +13 -0
pydantic: +2 -7
porcupine: +1 -1
dacite: +0 -1
check-jsonschema: +1 -2
scrapy: +5 -1
pylint: +15 -15
discord.py: +15 -2
optuna: +0 -3
koda-validate: +0 -3
graphql-core: +2 -5
kopf: +2 -2
archinstall: +3 -3
django-modern-rest: +1 -0
schema_salad: +2 -3
============================================================
FULL DIFF DETAILS
------------------------------------------------------------
pip (https://github.com/pypa/pip)
- ERROR src/pip/_internal/locations/_distutils.py:101:41-107:10: No matching overload found for function `posixpath.join` called with arguments: (str | Any | None, Literal['include'], Literal['site'], str, str) [no-matching-overload]
+ ERROR src/pip/_internal/locations/_distutils.py:101:41-107:10: No matching overload found for function `posixpath.join` called with arguments: (str | None, Literal['include'], Literal['site'], str, str) [no-matching-overload]
+ ERROR src/pip/_vendor/cachecontrol/caches/file_cache.py:88:14-29: Expected a callable, got `None` [not-callable]
+ ERROR src/pip/_vendor/packaging/tags.py:804:17-34: Object of class `NoneType` has no attribute `replace` [missing-attribute]
- ERROR src/pip/_vendor/pkg_resources/__init__.py:543:71-75: The type of this argument is unknown [unknown-argument-type]
- ERROR src/pip/_vendor/pkg_resources/__init__.py:3466:40-44: Argument `str | tuple[str, ...] | Unknown` is not assignable to parameter `item` with type `Version | str` in function `pip._vendor.packaging.specifiers.SpecifierSet.contains` [bad-argument-type]
+ ERROR src/pip/_vendor/pkg_resources/__init__.py:3466:40-44: Argument `Distribution | str | tuple[str, ...]` is not assignable to parameter `item` with type `Version | str` in function `pip._vendor.packaging.specifiers.SpecifierSet.contains` [bad-argument-type]
- ERROR src/pip/_vendor/rich/syntax.py:404:16-21: Implicit conversion of `Lexer | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/syntax.py:404:16-21: Implicit conversion of `Lexer | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/syntax.py:413:12-17: Implicit conversion of `Lexer | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/syntax.py:413:12-17: Implicit conversion of `Lexer | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/syntax.py:414:16-29: Implicit conversion of `list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/syntax.py:414:16-29: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/truststore/_macos.py:260:20-26: Implicit conversion of `c_int32` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/connectionpool.py:750:49-50: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:907:31-38: Type `None` is not iterable [not-iterable]
- ERROR src/pip/_vendor/urllib3/util/ssl_.py:254:35-54: `int | Unknown` is not assignable to attribute `minimum_version` with type `TLSVersion` [bad-assignment]
+ ERROR src/pip/_vendor/urllib3/util/ssl_.py:254:35-54: `int` is not assignable to attribute `minimum_version` with type `TLSVersion` [bad-assignment]
- ERROR src/pip/_vendor/urllib3/util/ssl_.py:259:35-54: `int | Unknown` is not assignable to attribute `maximum_version` with type `TLSVersion` [bad-assignment]
+ ERROR src/pip/_vendor/urllib3/util/ssl_.py:259:35-54: `int` is not assignable to attribute `maximum_version` with type `TLSVersion` [bad-assignment]
mkdocs (https://github.com/mkdocs/mkdocs)
+ ERROR mkdocs/theme.py:73:53-59: Argument `str | None` is not assignable to parameter `locale` with type `str` in function `mkdocs.localization.parse_locale` [bad-argument-type]
cloud-init (https://github.com/canonical/cloud-init)
- ERROR cloudinit/cmd/main.py:956:10-22: The type of `v1` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR cloudinit/config/cc_set_passwords.py:165:13-23: Implicit conversion of `list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/config/cc_set_passwords.py:165:13-23: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/config/cc_set_passwords.py:165:13-32: Implicit conversion of `list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/config/cc_set_passwords.py:165:13-32: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/config/cc_set_passwords.py:174:8-13: Implicit conversion of `list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/config/cc_set_passwords.py:174:8-13: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/config/cc_set_passwords.py:174:8-27: Implicit conversion of `list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/config/cc_set_passwords.py:174:8-27: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/config/cc_spacewalk.py:72:24-41: The type of `spacewalk_server` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR cloudinit/config/cc_spacewalk.py:73:8-24: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/config/cc_spacewalk.py:80:17-39: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/config/cc_spacewalk.py:81:17-57: The type of this argument is unknown [unknown-argument-type]
+ ERROR cloudinit/distros/netbsd.py:138:25-46: The type of `hashed_pw` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR cloudinit/net/netplan.py:274:21-39: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/sources/DataSourceAzure.py:541:36-41: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/sources/DataSourceAzure.py:567:25-40: The type of this argument is unknown [unknown-argument-type]
- ERROR cloudinit/sources/DataSourceOpenNebula.py:93:16-23: Implicit conversion of `dict[str, Any] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/sources/DataSourceOpenNebula.py:93:16-23: Implicit conversion of `dict[str, Any] | None` to `bool` is not allowed [implicit-bool]
- ERROR cloudinit/sources/DataSourceOpenNebula.py:102:14-33: The type of `md` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR cloudinit/sources/DataSourceWSL.py:350:12-21: Implicit conversion of `str | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR cloudinit/sources/DataSourceWSL.py:350:12-21: Implicit conversion of `str` to `bool` is not allowed [implicit-bool]
openlibrary (https://github.com/internetarchive/openlibrary)
+ ERROR openlibrary/book_providers.py:776:12-21: Implicit conversion of `list[AbstractBookProvider[Unknown]]` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/catalog/marc/get_subjects.py:22:24-25: The type of this argument is unknown [unknown-argument-type]
- ERROR openlibrary/catalog/marc/get_subjects.py:23:16-17: Returning implicit Any from function declared to return "str" [no-any-return-implicit]
- ERROR openlibrary/catalog/marc/get_subjects.py:24:34-35: The type of this argument is unknown [unknown-argument-type]
- ERROR openlibrary/catalog/marc/get_subjects.py:26:12-13: Returning implicit Any from function declared to return "str" [no-any-return-implicit]
- ERROR openlibrary/catalog/marc/get_subjects.py:38:12-13: The type of this argument is unknown [unknown-argument-type]
- ERROR openlibrary/catalog/marc/get_subjects.py:40:27-28: The type of this argument is unknown [unknown-argument-type]
- ERROR openlibrary/catalog/marc/get_subjects.py:42:43-44: The type of this argument is unknown [unknown-argument-type]
- ERROR openlibrary/catalog/marc/get_subjects.py:44:28-29: The type of this argument is unknown [unknown-argument-type]
- ERROR openlibrary/catalog/marc/get_subjects.py:46:12-13: Returning implicit Any from function declared to return "str" [no-any-return-implicit]
- ERROR openlibrary/catalog/marc/parse.py:502:8-26: The type of this argument is unknown [unknown-argument-type]
aioredis (https://github.com/aio-libs/aioredis)
- ERROR aioredis/connection.py:546:13-548:57: Implicit conversion of `bool | list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR aioredis/connection.py:546:13-548:57: Implicit conversion of `bool | list[ConnectionError | bytes | float | int | memoryview | str]` to `bool` is not allowed [implicit-bool]
- ERROR aioredis/connection.py:547:17-25: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR aioredis/connection.py:547:17-25: Implicit conversion of `list[ConnectionError | bytes | float | int | memoryview | str]` to `bool` is not allowed [implicit-bool]
+ ERROR aioredis/lock.py:203:38-43: Argument `bytes | str | None` is not assignable to parameter `token` with type `bytes | str` in function `Lock.do_acquire` [bad-argument-type]
egglog-python (https://github.com/egraphs-good/egglog-python)
+ ERROR python/egglog/egraph.py:1900:17-39: Object of class `Expr` has no attribute `__egg_typed_expr__` [missing-attribute]
+ ERROR python/egglog/egraph.py:1928:17-39: Object of class `Expr` has no attribute `__egg_typed_expr__` [missing-attribute]
+ ERROR python/egglog/egraph.py:1950:78-102: Object of class `BaseExpr` has no attribute `__egg_typed_expr__` [missing-attribute]
+ ERROR python/egglog/egraph.py:1974:85-107: Object of class `BaseExpr` has no attribute `__egg_typed_expr__` [missing-attribute]
+ ERROR python/egglog/egraph.py:1998:58-80: Object of class `BaseExpr` has no attribute `__egg_typed_expr__` [missing-attribute]
+ ERROR python/egglog/egraph.py:2018:79-101: Object of class `Expr` has no attribute `__egg_typed_expr__` [missing-attribute]
packaging (https://github.com/pypa/packaging)
+ ERROR src/packaging/tags.py:803:17-34: Object of class `NoneType` has no attribute `replace` [missing-attribute]
+ ERROR src/packaging/tags.py:873:22-31: Argument `int | None` is not assignable to parameter `start` with type `SupportsIndex` in function `range.__new__` [bad-argument-type]
cki-lib (https://gitlab.com/cki-project/cki-lib)
- ERROR cki_lib/yaml.py:152:12-23: Implicit conversion of `Path | str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cki_lib/yaml.py:152:12-23: Implicit conversion of `Path | str | None` to `bool` is not allowed [implicit-bool]
- ERROR cki_lib/yaml.py:167:12-23: Implicit conversion of `Literal[''] | Path | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cki_lib/yaml.py:167:12-23: Implicit conversion of `Literal[''] | Path | None` to `bool` is not allowed [implicit-bool]
mitmproxy (https://github.com/mitmproxy/mitmproxy)
- ERROR mitmproxy/contentviews/_view_css.py:35:38-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR mitmproxy/net/http/url.py:54:40-66: `ParseResult | ParseResultBytes` is not assignable to `ParseResult` [bad-assignment]
+ ERROR mitmproxy/optmanager.py:512:21-25: Argument `Iterable[str] | None` is not assignable to parameter `iterable` with type `Iterable[str]` in function `sorted` [bad-argument-type]
- ERROR test/mitmproxy/proxy/tutils.py:76:9-59: `str` is not assignable to variable `x` with type `Command | Event` [bad-assignment]
+ ERROR test/mitmproxy/proxy/tutils.py:76:15-59: No matching overload found for function `re.sub` called with arguments: (Literal['Placeholder:'], Literal[''], Command | Event, flags=Literal[RegexFlag.I]) [no-matching-overload]
rotki (https://github.com/rotki/rotki)
+ ERROR rotkehlchen/db/drivers/sqlite.py:231:12-21: `<=` is not supported between `None` and `Literal[0]` [unsupported-operation]
+ ERROR rotkehlchen/db/drivers/sqlite.py:236:15-33: `<` is not supported between `int` and `None` [unsupported-operation]
+ ERROR rotkehlchen/db/drivers/sqlite.py:242:54-72: `-` is not supported between `None` and `int` [unsupported-operation]
- ERROR rotkehlchen/tests/api/test_user_evm_tokens.py:85:41-47: The type of this argument is unknown [unknown-argument-type]
dulwich (https://github.com/dulwich/dulwich)
- ERROR dulwich/porcelain/__init__.py:8958:12-23: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR dulwich/porcelain/__init__.py:8958:12-23: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
steam.py (https://github.com/Gobot1234/steam.py)
- ERROR steam/http.py:412:20-36: The type of `page` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR steam/http.py:414:50-53: Invalid key for TypedDict `GetTradeOffers`, got `Unknown` [bad-typed-dict-key]
+ ERROR steam/http.py:414:50-53: Invalid key for TypedDict `GetTradeOffers`, got `str` [bad-typed-dict-key]
- ERROR steam/http.py:421:31-50: The type of `next_cursor` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR steam/http.py:421:36-49: TypedDict key `next_cursor` may be absent [not-required-key-access]
pytest (https://github.com/pytest-dev/pytest)
- ERROR src/_pytest/_code/code.py:335:12-15: Implicit conversion of `((ExceptionInfo[BaseException] | None) -> bool) | bool | Any` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/_code/code.py:335:12-15: Implicit conversion of `((ExceptionInfo[BaseException] | None) -> bool) | bool` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/_code/code.py:335:12-33: Implicit conversion of `((ExceptionInfo[BaseException] | None) -> bool) | bool | Any` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/_code/code.py:335:12-33: Implicit conversion of `((ExceptionInfo[BaseException] | None) -> bool) | bool` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/_code/code.py:336:20-32: Returned type `bool | object` is not assignable to declared return type `bool` [bad-return]
- ERROR src/_pytest/_code/code.py:337:16-19: Returned type `((ExceptionInfo[BaseException] | None) -> bool) | bool | Any` is not assignable to declared return type `bool` [bad-return]
+ ERROR src/_pytest/_code/code.py:337:16-19: Returned type `((ExceptionInfo[BaseException] | None) -> bool) | bool` is not assignable to declared return type `bool` [bad-return]
- ERROR src/_pytest/_code/code.py:1557:16-19: The type of this argument is unknown [unknown-argument-type]
- ERROR src/_pytest/_code/code.py:1561:35-38: The type of this argument is unknown [unknown-argument-type]
- ERROR src/_pytest/_code/code.py:1572:40-43: The type of this argument is unknown [unknown-argument-type]
- ERROR src/_pytest/debugging.py:248:12-18: Implicit conversion of `CaptureManager | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/debugging.py:248:12-18: Implicit conversion of `CaptureManager | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/debugging.py:249:13-37: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
jax (https://github.com/google/jax)
- ERROR jax/_src/api.py:546:30-45: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/api.py:549:63-70: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/api.py:554:49-56: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/api_util.py:47:27-28: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/api_util.py:49:38-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/api_util.py:55:28-29: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/api_util.py:57:38-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/api_util.py:695:16-40: The type of `filename` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/api_util.py:696:14-41: The type of `lineno` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR jax/_src/array.py:205:20-26: `Sequence[ArrayImpl] | list[ArrayImpl]` is not assignable to attribute `_arrays` with type `list[ArrayImpl]` [bad-assignment]
- ERROR jax/_src/array.py:803:31-36: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/array.py:1098:31-36: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/core.py:3241:12-23: Returning implicit Any from function declared to return "int | Any" [no-any-return-implicit]
- ERROR jax/_src/core.py:3243:12-22: Returning implicit Any from function declared to return "int | Any" [no-any-return-implicit]
+ ERROR jax/_src/core.py:3241:12-19: Object of class `int` has no attribute `rmin` [missing-attribute]
+ ERROR jax/_src/core.py:3243:12-18: Object of class `int` has no attribute `min` [missing-attribute]
- ERROR jax/_src/core.py:3253:12-23: Returning implicit Any from function declared to return "int | Any" [no-any-return-implicit]
- ERROR jax/_src/core.py:3255:12-22: Returning implicit Any from function declared to return "int | Any" [no-any-return-implicit]
+ ERROR jax/_src/core.py:3253:12-19: Object of class `int` has no attribute `rmax` [missing-attribute]
+ ERROR jax/_src/core.py:3255:12-18: Object of class `int` has no attribute `max` [missing-attribute]
- ERROR jax/_src/cudnn/fused_attention_stablehlo.py:2005:35-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/cudnn/fused_attention_stablehlo.py:2007:14-30: The type of `has_bias` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/cudnn/fused_attention_stablehlo.py:2009:25-35: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/cudnn/fused_attention_stablehlo.py:2017:26-30: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/cudnn/fused_attention_stablehlo.py:2152:37-41: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/cudnn/fused_attention_stablehlo.py:2154:16-32: The type of `has_bias` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/cudnn/fused_attention_stablehlo.py:2156:27-37: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/cudnn/fused_attention_stablehlo.py:2172:28-32: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/export/_export.py:452:47-453:52: Cannot set item in `dict[str, tuple[type[Any], _DeserializeAuxData, _BuildFromChildren]]` [unsupported-operation]
+ ERROR jax/_src/export/shape_poly.py:2074:50-55: Argument `SymbolicScope | None` is not assignable to parameter `scope` with type `SymbolicScope` in function `_DimExpr._from_var` [bad-argument-type]
+ ERROR jax/_src/export/shape_poly.py:2079:47-52: Argument `SymbolicScope | None` is not assignable to parameter `scope` with type `SymbolicScope` in function `_DimTerm.evaluate` [bad-argument-type]
- ERROR jax/_src/ffi.py:561:9-14: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/mlir.py:1124:43-87: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/mlir.py:1125:35-54: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/interpreters/mlir.py:1226:12-37: Object of class `NoneType` has no attribute `_to_sdy_sharding` [missing-attribute]
+ ERROR jax/_src/interpreters/mlir.py:1227:10-39: Object of class `NoneType` has no attribute `_to_xla_hlo_sharding` [missing-attribute]
- ERROR jax/_src/interpreters/mlir.py:2843:31-33: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/partial_eval.py:2103:30-40: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/partial_eval.py:2113:51-74: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/interpreters/partial_eval.py:2113:51-74: Argument `(() -> tuple[str, ...]) | InitialResultPaths | tuple[str, ...]` is not assignable to parameter `__arg2` with type `Iterable[@_]` in function `jax._src.util.safe_zip` [bad-argument-type]
- ERROR jax/_src/interpreters/partial_eval.py:2119:29-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/partial_eval.py:2120:73-83: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1114:58-71: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1135:7-20: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1168:7-34: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1766:9-21: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1766:23-36: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1780:25-37: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1782:39-51: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1783:40-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/interpreters/pxla.py:1792:26-39: Argument `Sequence[Sharding | UnspecifiedValue]` is not assignable to parameter `output_shardings` with type `Sequence[Sharding]` in function `UnloadedMeshExecutable.__init__` [bad-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1790:9-37: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/pxla.py:1792:9-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/control_flow/common.py:77:51-56: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/control_flow/common.py:78:10-15: Returning implicit Any from function declared to return "Jaxpr" [no-any-return-implicit]
- ERROR jax/_src/lax/control_flow/loops.py:210:52-65: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/control_flow/loops.py:464:52-65: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:93:46-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/lax.py:1739:32-33: Unused `# pyrefly: ignore` comment for code(s): bad-argument-type [unused-ignore]
- ERROR jax/_src/lax/lax.py:3033:20-3034:60: The type of `same_sharding` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/lax/lax.py:3546:30-38: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:3643:22-32: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:3645:22-32: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:3682:22-41: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:3877:12-60: Returning implicit Any from function declared to return "Array" [no-any-return-implicit]
- ERROR jax/_src/lax/lax.py:3900:60-65: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/lax/lax.py:3900:60-65: Argument `SupportsDType | dtype | str | type[Any] | None` is not assignable to parameter `new_dtype` with type `dtype | None` in function `_convert_element_type` [bad-argument-type]
- ERROR jax/_src/lax/lax.py:3957:36-41: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:3960:52-63: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/lax.py:3962:29-34: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/pallas_lowerings/gpu/ragged_dot.py:172:35-41: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/pallas_lowerings/gpu/ragged_dot.py:182:38-48: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/pallas_lowerings/gpu/ragged_dot.py:183:38-48: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/pallas_lowerings/gpu/ragged_dot.py:200:29-49: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/lax/parallel.py:866:29-64: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/nn/functions.py:708:27-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/nn/functions.py:712:44-62: `+` is not supported between `None` and `Array` [unsupported-operation]
+ ERROR jax/_src/nn/functions.py:712:44-62: `+` is not supported between `None` and `bool` [unsupported-operation]
+ ERROR jax/_src/nn/functions.py:712:44-62: `+` is not supported between `None` and `numpy.bool` [unsupported-operation]
+ ERROR jax/_src/nn/functions.py:712:44-62: `+` is not supported between `None` and `complex` [unsupported-operation]
+ ERROR jax/_src/nn/functions.py:712:44-62: `+` is not supported between `None` and `float` [unsupported-operation]
+ ERROR jax/_src/nn/functions.py:712:44-62: `+` is not supported between `None` and `int` [unsupported-operation]
+ ERROR jax/_src/nn/functions.py:712:44-62: `+` is not supported between `None` and `number` [unsupported-operation]
- ERROR jax/_src/nn/functions.py:735:30-41: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/nn/functions.py:794:26-37: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/nn/functions.py:795:19-44: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/nn/functions.py:1037:42-46: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/nn/functions.py:1037:48-52: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/nn/initializers.py:116:48-67: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/nn/initializers.py:116:55-67: Argument `NamedSharding | P | None` is not assignable to parameter `device` with type `Device | Sharding | None` in function `jax._src.numpy.array_creation.full` [bad-argument-type]
- ERROR jax/_src/numpy/array_creation.py:586:33-36: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/array_creation.py:586:64-68: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/array_creation.py:712:33-36: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/array_creation.py:712:61-65: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/array_creation.py:783:34-37: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/array_creation.py:783:56-60: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/array_methods.py:1211:33-45: Argument `NamedSharding | P | None` is not assignable to parameter `out_sharding` with type `NamedSharding | None` in function `jax._src.ops.scatter._scatter_update` [bad-argument-type]
+ ERROR jax/_src/numpy/array_methods.py:1256:33-45: Argument `NamedSharding | P | None` is not assignable to parameter `out_sharding` with type `NamedSharding | None` in function `jax._src.ops.scatter._scatter_update` [bad-argument-type]
+ ERROR jax/_src/numpy/array_methods.py:1277:33-45: Argument `NamedSharding | P | None` is not assignable to parameter `out_sharding` with type `NamedSharding | None` in function `jax._src.ops.scatter._scatter_update` [bad-argument-type]
+ ERROR jax/_src/numpy/array_methods.py:1299:33-45: Argument `NamedSharding | P | None` is not assignable to parameter `out_sharding` with type `NamedSharding | None` in function `jax._src.ops.scatter._scatter_update` [bad-argument-type]
+ ERROR jax/_src/numpy/array_methods.py:1326:37-49: Argument `NamedSharding | P | None` is not assignable to parameter `out_sharding` with type `NamedSharding | None` in function `jax._src.ops.scatter._scatter_update` [bad-argument-type]
+ ERROR jax/_src/numpy/array_methods.py:1352:26-38: Argument `NamedSharding | P | None` is not assignable to parameter `out_sharding` with type `NamedSharding | None` in function `jax._src.ops.scatter._scatter_update` [bad-argument-type]
+ ERROR jax/_src/numpy/array_methods.py:1375:33-45: Argument `NamedSharding | P | None` is not assignable to parameter `out_sharding` with type `NamedSharding | None` in function `jax._src.ops.scatter._scatter_update` [bad-argument-type]
+ ERROR jax/_src/numpy/array_methods.py:1399:33-45: Argument `NamedSharding | P | None` is not assignable to parameter `out_sharding` with type `NamedSharding | None` in function `jax._src.ops.scatter._scatter_update` [bad-argument-type]
- ERROR jax/_src/numpy/fft.py:121:24-27: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/hijax.py:782:21-23: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/hijax.py:788:15-24: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/indexing.py:198:29-36: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/indexing.py:198:29-36: Argument `Array | EllipsisType | Sequence[AnyInt] | int | integer | ndarray | slice[Any, Any, Any] | tuple[Index, ...] | None` is not assignable to parameter `indices` with type `tuple[Index, ...]` in function `_parse_indices` [bad-argument-type]
+ ERROR jax/_src/numpy/indexing.py:1154:27-44: Object of type `NamedSharding | P | None` has no attribute `mesh` [missing-attribute]
- ERROR jax/_src/numpy/indexing.py:1153:39-64: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/indexing.py:1154:22-58: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:1635:29-33: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:1667:18-19: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:2628:13-27: The type of `x_arr` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/numpy/lax_numpy.py:2629:14-29: The type of `xp_arr` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/numpy/lax_numpy.py:2630:39-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/lax_numpy.py:2628:13-27: `%` is not supported between `Array` and `None` [unsupported-operation]
+ ERROR jax/_src/numpy/lax_numpy.py:2629:14-29: `%` is not supported between `Array` and `None` [unsupported-operation]
+ ERROR jax/_src/numpy/lax_numpy.py:2631:27-47: `-` is not supported between `Array` and `None` [unsupported-operation]
+ ERROR jax/_src/numpy/lax_numpy.py:2631:57-76: `+` is not supported between `Array` and `None` [unsupported-operation]
- ERROR jax/_src/numpy/lax_numpy.py:2972:18-27: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:2990:66-78: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/lax_numpy.py:2990:66-78: Argument `NamedSharding | P` is not assignable to parameter `sharding` with type `NamedSharding` in function `is_replicated_or_unreduced` [bad-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3135:10-25: The type of `size` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/numpy/lax_numpy.py:3135:20-24: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3150:31-35: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3152:28-32: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3162:27-31: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3166:15-71: The type of `sizes` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/numpy/lax_numpy.py:3169:38-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3169:55-56: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3171:37-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/lax_numpy.py:3429:31-34: Argument `Array | builtins.bool | numpy.bool | complex | float | int | ndarray | number | None` is not assignable to parameter `*args` with type `Array | builtins.bool | numpy.bool | complex | float | int | ndarray | number` in function `jax._src.numpy.ufunc_api.ufunc.__call__` [bad-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3494:28-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/lax_numpy.py:3499:6-50: Implicit conversion of `ndarray[tuple[Any, ...], dtype[numpy.bool]]` to `bool` is not allowed [implicit-bool]
- ERROR jax/_src/numpy/lax_numpy.py:3939:32-47: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3943:27-42: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3948:37-52: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:3954:34-49: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:4051:27-32: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5955:36-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5959:31-32: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5964:28-33: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5964:35-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5964:41-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/lax_numpy.py:5986:32-44: `-` is not supported between `numpy.bool` and `numpy.bool` [unsupported-operation]
+ ERROR jax/_src/numpy/lax_numpy.py:5993:8-18: Implicit conversion of `Array | bool | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR jax/_src/numpy/lax_numpy.py:5999:31-43: `-` is not supported between `numpy.bool` and `numpy.bool` [unsupported-operation]
- ERROR jax/_src/numpy/lax_numpy.py:5967:32-37: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5970:19-24: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5970:42-46: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5970:64-68: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5986:31-52: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5988:42-47: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5989:50-54: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5995:31-35: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:5999:31-43: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6000:45-50: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6412:33-37: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6442:18-22: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6461:45-54: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6907:52-55: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6907:74-75: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6907:77-78: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6907:80-81: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6966:52-55: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6966:74-75: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6966:77-78: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:6966:80-82: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7205:30-31: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7208:30-34: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7209:45-46: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7214:10-44: Returning implicit Any from function declared to return "tuple[Array, ...]" [no-any-return-implicit]
- ERROR jax/_src/numpy/lax_numpy.py:7214:33-34: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7309:37-43: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7309:70-76: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7312:16-27: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7312:20-26: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7312:29-52: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7312:33-39: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:7789:29-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/lax_numpy.py:7789:29-33: Argument `int | None` is not assignable to parameter `axis` with type `SupportsIndex` in function `jax._src.util.canonicalize_axis` [bad-argument-type]
- ERROR jax/_src/numpy/lax_numpy.py:8632:28-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR jax/_src/numpy/linalg.py:468:26-30: Argument `Array | builtins.bool | numpy.bool | complex | float | int | ndarray | number | None` is not assignable to parameter `a` with type `Array | builtins.bool | numpy.bool | complex | float | int | ndarray | number` in function `jax._src.numpy.lax_numpy.expand_dims` [bad-argument-type]
+ ERROR jax/_src/numpy/linalg.py:468:40-44: Argument `Array | builtins.bool | numpy.bool | complex | float | int | ndarray | number | None` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `numpy._core.fromnumeric.ndim` [bad-argument-type]
- ERROR jax/_src/numpy/polynomial.py:58:32-33: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/polynomial.py:235:11-18: The type of `order` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/numpy/polynomial.py:251:23-28: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/polynomial.py:270:47-52: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/polynomial.py:283:44-49: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/numpy/polynomial.py:294:13-42: The type of `fac` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR jax/_src/numpy/polynomial.py:574:20-34: The type of this argument is unknown [unknown-argument-type]
... (truncated 270 lines) ...
cwltool (https://github.com/common-workflow-language/cwltool)
+ ERROR cwltool/command_line_tool.py:1282:29-39: Result of call expression is of type `MutableMapping[str, CWLOutputType | None] | MutableSequence[CWLOutputType | None] | bool | float | int | str | CWLDirectoryType | CWLFileType | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR cwltool/command_line_tool.py:1299:16-19: Implicit conversion of `dict[str, MutableMapping[str, CWLOutputType | None] | MutableSequence[CWLOutputType | None] | bool | float | int | str | CWLDirectoryType | CWLFileType | None] | Any` to `bool` is not allowed [implicit-bool]
+ ERROR cwltool/command_line_tool.py:1299:16-19: Implicit conversion of `dict[str, MutableMapping[str, CWLOutputType | None] | MutableSequence[CWLOutputType | None] | bool | float | int | str | CWLDirectoryType | CWLFileType | None]` to `bool` is not allowed [implicit-bool]
- ERROR cwltool/cwlprov/provenance_profile.py:276:16-22: Implicit conversion of `ProvEntity | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cwltool/cwlprov/provenance_profile.py:276:16-22: Implicit conversion of `ProvEntity | None` to `bool` is not allowed [implicit-bool]
- ERROR cwltool/cwlprov/provenance_profile.py:287:16-22: Implicit conversion of `ProvEntity | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cwltool/cwlprov/provenance_profile.py:287:16-22: Implicit conversion of `ProvEntity | None` to `bool` is not allowed [implicit-bool]
- ERROR cwltool/cwlprov/provenance_profile.py:292:16-22: Implicit conversion of `ProvEntity | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR cwltool/cwlprov/provenance_profile.py:292:16-22: Implicit conversion of `ProvEntity | None` to `bool` is not allowed [implicit-bool]
spark (https://github.com/apache/spark)
+ ERROR python/pyspark/ml/connect/classification.py:239:43-57: Expected a callable, got `Series` [not-callable]
+ ERROR python/pyspark/ml/connect/classification.py:272:9-26: Expected a callable, got `Series` [not-callable]
+ ERROR python/pyspark/ml/connect/util.py:93:18-39: Expected a callable, got `Series` [not-callable]
+ ERROR python/pyspark/pandas/config.py:409:23-41: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/pandas/config.py:434:5-23: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/pandas/config.py:457:5-23: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/pandas/data_type_ops/boolean_ops.py:263:24-36: The type of `scol` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR python/pyspark/pandas/frame.py:710:24-77: Implicit conversion of `bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:6222:34-40: Type `None` is not iterable [not-iterable]
+ ERROR python/pyspark/pandas/frame.py:6229:41-47: Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR python/pyspark/pandas/frame.py:6294:45-59: The type of this argument is unknown [unknown-argument-type]
- ERROR python/pyspark/pandas/frame.py:6297:24-28: Returning Any from function declared to return "DataFrame | None" [no-any-return-explicit]
- ERROR python/pyspark/pandas/frame.py:8978:16-30: Implicit conversion of `list[str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:8978:16-30: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/pandas/frame.py:8978:16-54: Implicit conversion of `bool | list[str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:8978:16-54: Implicit conversion of `bool | list[str]` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/pandas/frame.py:8978:39-54: Implicit conversion of `list[str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:8978:39-54: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/pandas/frame.py:8980:16-31: Implicit conversion of `list[str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:8980:16-31: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/pandas/frame.py:8980:16-54: Implicit conversion of `bool | list[str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:8980:16-54: Implicit conversion of `bool | list[str]` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/pandas/frame.py:8980:40-54: Implicit conversion of `list[str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:8980:40-54: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/pandas/frame.py:8982:20-34: Implicit conversion of `list[str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:8982:20-34: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR python/pyspark/pandas/frame.py:8982:43-58: Implicit conversion of `list[str] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:8982:43-58: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/frame.py:10661:22-37: Object of type `Sequence[Any] | Unknown | None` has no attribute `_internal` [missing-attribute]
+ ERROR python/pyspark/pandas/frame.py:10661:57-68: Object of type `Sequence[Any] | Unknown | None` has no attribute `spark` [missing-attribute]
+ ERROR python/pyspark/pandas/frame.py:10721:21-36: Object of type `Sequence[Any] | Unknown | None` has no attribute `_internal` [missing-attribute]
+ ERROR python/pyspark/pandas/frame.py:11041:78-88: Type `None` is not iterable [not-iterable]
+ ERROR python/pyspark/pandas/frame.py:11064:24-43: `in` is not supported between `Unknown` and `None` [not-iterable]
+ ERROR python/pyspark/pandas/indexes/base.py:158:24-35: Object of class `NoneType` has no attribute `rename` [missing-attribute]
+ ERROR python/pyspark/pandas/indexes/base.py:161:29-43: Object of class `NoneType` has no attribute `_internal` [missing-attribute]
+ ERROR python/pyspark/pandas/indexes/base.py:162:37-51: Object of class `NoneType` has no attribute `_internal` [missing-attribute]
+ ERROR python/pyspark/pandas/indexes/base.py:163:29-43: Object of class `NoneType` has no attribute `_internal` [missing-attribute]
+ ERROR python/pyspark/pandas/indexes/base.py:164:30-44: Object of class `NoneType` has no attribute `_internal` [missing-attribute]
+ ERROR python/pyspark/pandas/indexes/base.py:176:24-35: Object of class `NoneType` has no attribute `rename` [missing-attribute]
+ ERROR python/pyspark/pandas/indexes/base.py:2341:12-16: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/pandas/internal.py:867:59-77: `list[Unknown | None] | None` is not assignable to attribute `_column_label_names` with type `list[Unknown | None]` [bad-assignment]
+ ERROR python/pyspark/pandas/internal.py:1265:63-75: Type `None` is not iterable [not-iterable]
+ ERROR python/pyspark/pandas/utils.py:521:19-29: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/pandas/utils.py:523:9-19: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/pandas/utils.py:529:17-27: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/pandas/utils.py:531:17-27: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/sql/classic/dataframe.py:928:27-45: Object of class `str` has no attribute `_jc` [missing-attribute]
+ ERROR python/pyspark/sql/classic/dataframe.py:931:28-47: Object of class `str` has no attribute `_jc` [missing-attribute]
+ ERROR python/pyspark/sql/connect/column.py:410:26-37: The type of `other_expr` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR python/pyspark/sql/connect/expressions.py:476:41-52: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `o` with type `Buffer | Iterable[SupportsIndex] | SupportsBytes | SupportsIndex` in function `bytes.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:480:37-48: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:482:38-49: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:484:40-51: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:486:37-48: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:488:40-51: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsFloat | SupportsIndex | str` in function `float.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:490:41-52: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsFloat | SupportsIndex | str` in function `float.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:498:37-48: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:501:42-53: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:503:42-53: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:505:46-57: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:507:50-61: Argument `Decimal | bool | bytearray | bytes | float | int | list[Unknown] | str | Unknown` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR python/pyspark/sql/connect/expressions.py:511:22-33: Type `Decimal` is not iterable [not-iterable]
- ERROR python/pyspark/sql/connect/expressions.py:511:22-33: Type `bool` is not iterable [not-iterable]
- ERROR python/pyspark/sql/connect/expressions.py:511:22-33: Type `float` is not iterable [not-iterable]
- ERROR python/pyspark/sql/connect/expressions.py:511:22-33: Type `int` is not iterable [not-iterable]
- ERROR python/pyspark/sql/connect/local_server.py:309:5-22: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR python/pyspark/sql/connect/session.py:645:30-51: Object of class `NoneType` has no attribute `rename_columns` [missing-attribute]
+ ERROR python/pyspark/sql/connect/session.py:671:33-45: Object of type `list[str] | str | tuple[str, ...] | Unknown | None` has no attribute `names` [missing-attribute]
+ ERROR python/pyspark/sql/connect/session.py:751:51-63: Object of class `NoneType` has no attribute `shape` [missing-attribute]
+ ERROR python/pyspark/sql/connect/session.py:756:42-54: Object of class `NoneType` has no attribute `shape` [missing-attribute]
+ ERROR python/pyspark/sql/connect/session.py:782:31-44: Object of class `NoneType` has no attribute `nbytes` [missing-attribute]
+ ERROR python/pyspark/sql/connect/types.py:398:22-29: Type `None` is not iterable [not-iterable]
+ ERROR python/pyspark/sql/connect/types.py:425:22-29: Type `None` is not iterable [not-iterable]
+ ERROR python/pyspark/sql/connect/udf.py:107:39-48: Argument `int | None` is not assignable to parameter `evalType` with type `int` in function `_create_udf` [bad-argument-type]
+ ERROR python/pyspark/sql/connect/udf.py:295:16-26: Object of class `FunctionType` has no attribute `evalType` [missing-attribute]
+ ERROR python/pyspark/sql/connect/udf.py:318:17-23: Object of class `FunctionType` has no attribute `func` [missing-attribute]
+ ERROR python/pyspark/sql/connect/udf.py:318:25-37: Object of class `FunctionType` has no attribute `returnType` [missing-attribute]
+ ERROR python/pyspark/sql/connect/udf.py:318:57-72: Object of class `FunctionType` has no attribute `deterministic` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:125:27-54: Object of class `NoneType` has no attribute `_jsparkSession` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:223:41-69: Object of class `NoneType` has no attribute `newSession` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:230:9-31: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:253:16-38: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:265:16-37: Object of class `NoneType` has no attribute `udf` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:277:16-38: Object of class `NoneType` has no attribute `udtf` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:318:16-39: Object of class `NoneType` has no attribute `range` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:332:16-37: Object of class `NoneType` has no attribute `udf` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:349:16-37: Object of class `NoneType` has no attribute `udf` [missing-attribute]
- ERROR python/pyspark/sql/context.py:508:52-53: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR python/pyspark/sql/context.py:535:9-34: Object of class `NoneType` has no attribute `catalog` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:562:16-41: Object of class `NoneType` has no attribute `catalog` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:582:16-37: Object of class `NoneType` has no attribute `sql` [missing-attribute]
+ ERROR python/pyspark/sql/context.py:600:16-39: Object of class `NoneType` has no attribute `table` [missing-attribute]
+ ERROR python/pyspark/sql/conversion.py:293:17-26: `None` is not subscriptable [unsupported-operation]
+ ERROR python/pyspark/sql/conversion.py:294:26-35: `None` is not subscriptable [unsupported-operation]
+ ERROR python/pyspark/sql/conversion.py:388:24-33: Object of class `Sequence` has no attribute `iloc` [missing-attribute]
+ ERROR python/pyspark/sql/functions/builtin.py:14162:8-21: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/sql/functions/builtin.py:14162:8-35: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/sql/functions/builtin.py:14166:10-23: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/sql/functions/builtin.py:14169:10-19: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/sql/pandas/conversion.py:1056:59-70: Object of class `list` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/pandas/conversion.py:1107:16-29: Object of class `list` has no attribute `fields` [missing-attribute]
+ ERROR python/pyspark/sql/pandas/conversion.py:1136:59-70: Object of class `list` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/pandas/group_ops.py:424:55-76: Object of class `str` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/pandas/group_ops.py:425:55-75: Object of class `str` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/pandas/group_ops.py:755:59-80: Object of class `str` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/pandas/group_ops.py:764:59-80: Object of class `str` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/pandas/types.py:1027:39-64: No matching overload found for function `pandas.core.series.Series.astype` called with arguments: (Any, copy=Literal[False]) [no-matching-overload]
+ ERROR python/pyspark/sql/plot/core.py:524:16-19: Returned type `Sequence[float] | int | None` is not assignable to declared return type `Sequence[float]` [bad-return]
+ ERROR python/pyspark/sql/session.py:732:16-48: Object of class `NoneType` has no attribute `sessionState` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:754:45-75: Object of class `NoneType` has no attribute `newSession` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:867:16-43: Object of class `NoneType` has no attribute `version` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:897:30-54: Object of class `NoneType` has no attribute `conf` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:1068:19-44: Object of class `NoneType` has no attribute `range` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:1068:75-88: Argument `int | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
+ ERROR python/pyspark/sql/session.py:1070:19-44: Object of class `NoneType` has no attribute `range` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:1070:82-95: Argument `int | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
+ ERROR python/pyspark/sql/session.py:1728:15-57: Object of class `NoneType` has no attribute `applySchemaToPythonRDD` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:1934:30-53: Object of class `NoneType` has no attribute `sql` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:1987:26-51: Object of class `NoneType` has no attribute `table` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2099:38-65: Object of class `NoneType` has no attribute `streams` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2117:43-89: Object of class `NoneType` has no attribute `streamingCheckpointManager` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2426:21-53: Object of class `NoneType` has no attribute `interruptAll` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2454:21-53: Object of class `NoneType` has no attribute `interruptTag` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2482:21-59: Object of class `NoneType` has no attribute `interruptOperation` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2514:9-35: Object of class `NoneType` has no attribute `addTag` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2531:9-38: Object of class `NoneType` has no attribute `removeTag` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2548:20-47: Object of class `NoneType` has no attribute `getTags` [missing-attribute]
+ ERROR python/pyspark/sql/session.py:2567:9-38: Object of class `NoneType` has no attribute `clearTags` [missing-attribute]
+ ERROR python/pyspark/sql/streaming/stateful_processor_api_client.py:204:37-48: Object of class `str` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/streaming/stateful_processor_api_client.py:227:37-48: Object of class `str` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/streaming/stateful_processor_api_client.py:384:37-57: Object of class `str` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/streaming/stateful_processor_api_client.py:385:50-67: Object of class `str` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/sql/udf.py:145:39-48: Argument `int | None` is not assignable to parameter `evalType` with type `int` in function `_create_udf` [bad-argument-type]
+ ERROR python/pyspark/sql/udf.py:831:16-26: Object of class `FunctionType` has no attribute `evalType` [missing-attribute]
+ ERROR python/pyspark/sql/udf.py:854:17-23: Object of class `FunctionType` has no attribute `func` [missing-attribute]
+ ERROR python/pyspark/sql/udf.py:855:28-40: Object of class `FunctionType` has no attribute `returnType` [missing-attribute]
+ ERROR python/pyspark/sql/udf.py:857:26-36: Argument `object | Unknown` is not assignable to parameter `evalType` with type `int` in function `_create_udf` [bad-argument-type]
+ ERROR python/pyspark/sql/udf.py:858:31-46: Object of class `FunctionType` has no attribute `deterministic` [missing-attribute]
+ ERROR python/pyspark/sql/udf.py:924:66-81: Object of class `NoneType` has no attribute `json` [missing-attribute]
+ ERROR python/pyspark/streaming/dstream.py:864:17-33: Object of type `Iterable[tuple[K, S]] | Unknown | None` has no attribute `_jrdd` [missing-attribute]
+ ERROR python/pyspark/testing/utils.py:1244:14-46: Implicit conversion of `Series[bool] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/testing/utils.py:1256:12-30: Implicit conversion of `Series | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/testing/utils.py:1261:23-37: Expected a callable, got `Series` [not-callable]
+ ERROR python/pyspark/testing/utils.py:1266:12-32: Implicit conversion of `Series | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR python/pyspark/testing/utils.py:1271:25-41: Expected a callable, got `Series` [not-callable]
altair (https://github.com/vega/altair)
- ERROR altair/utils/core.py:316:16-23: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/utils/test_data.py:159:12-20: Implicit conversion of `str` to `bool` is not allowed [implicit-bool]
- ERROR tests/utils/test_data.py:157:33-41: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/utils/test_data.py:160:18-26: The type of this argument is unknown [unknown-argument-type]
prefect (https://github.com/PrefectHQ/prefect)
- ERROR src/integrations/prefect-aws/prefect_aws/observers/ecs.py:655:12-21: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-aws/prefect_aws/observers/ecs.py:655:12-21: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-aws/prefect_aws/observers/ecs.py:655:29-42: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-aws/prefect_aws/observers/ecs.py:655:29-42: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-aws/prefect_aws/observers/ecs.py:655:50-64: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-aws/prefect_aws/observers/ecs.py:655:50-64: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-aws/prefect_aws/observers/ecs.py:662:33-39: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-aws/prefect_aws/observers/ecs.py:662:33-39: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-databricks/prefect_databricks/rest.py:137:42-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:979:16-56: Implicit conversion of `Literal[False] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:993:12-72: Implicit conversion of `Literal[False] | dict[Unknown, Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:993:12-72: Implicit conversion of `Literal[False] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:998:14-73: Implicit conversion of `Literal[False] | dict[Unknown, Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:998:14-73: Implicit conversion of `Literal[False] | dict[Unknown, Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:1179:28-49: Returned type `str | None` is not assignable to declared return type `str` [bad-return]
+ ERROR src/integrations/prefect-docker/prefect_docker/deployments/steps.py:303:17-20: Argument `str | None` is not assignable to parameter `tag` with type `str` in function `_build_docker_image_buildx` [bad-argument-type]
+ ERROR src/integrations/prefect-docker/prefect_docker/deployments/steps.py:326:16-19: `str | None` is not assignable to TypedDict key `tag` with type `str` [bad-assignment]
+ ERROR src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1063:18-38: Object of class `str` has no attribute `parent` [missing-attribute]
+ ERROR src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1064:34-52: Object of class `str` has no attribute `stem` [missing-attribute]
- ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:548:12-20: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:548:12-20: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:564:12-20: Implicit conversion of `str | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:564:12-20: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:567:56-68: Implicit conversion of `str | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:567:56-68: Implicit conversion of `str` to `bool` is not allowed [implicit-bool]
- ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:568:12-17: Implicit conversion of `list[str | Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:568:12-17: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/_internal/plugins/startup.py:81:12-15: Implicit conversion of `Exception | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/_internal/plugins/startup.py:81:12-15: Implicit conversion of `Exception | None` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/_internal/plugins/startup.py:113:16-19: Implicit conversion of `Exception | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/_internal/plugins/startup.py:113:16-19: Implicit conversion of `Exception | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_config.py:293:28-58: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR src/prefect/cli/deploy/_config.py:299:12-45: Returned type `tuple[Unknown, dict[str, Unknown]]` is not assignable to declared return type `dict[str, Unknown]` [bad-return]
+ ERROR src/prefect/cli/deploy/_config.py:299:12-45: Returned type `tuple[dict[str, Unknown], dict[str, Unknown]]` is not assignable to declared return type `dict[str, Unknown]` [bad-return]
+ ERROR src/prefect/cli/deploy/_config.py:540:9-24: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_config.py:540:9-542:43: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_config.py:549:8-23: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_config.py:549:8-61: Implicit conversion of `bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:107:12-43: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:121:12-27: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:181:23-71: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:237:23-71: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:238:22-68: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:242:23-69: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:249:18-43: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:275:16-41: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:309:12-44: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:387:17-45: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/cli/deploy/_core.py:388:22-55: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/deployments/base.py:40:20-41: `/` is not supported between `str` and `Literal['prefect.yaml']` [unsupported-operation]
+ ERROR src/prefect/deployments/base.py:231:8-35: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/deployments/base.py:247:8-43: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/runner/_uv_command.py:65:12-37: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/prefect/server/api/events.py:175:12-22: Implicit conversion of `str` to `bool` is not allowed [implicit-bool]
scipy (https://github.com/scipy/scipy)
+ ERROR scipy/conftest.py:590:9-22: Expected a callable, got `Literal['skip']` [not-callable]
+ ERROR scipy/conftest.py:590:9-22: Expected a callable, got `Literal['xfail']` [not-callable]
+ ERROR scipy/signal/_fir_filter_design.py:1374:17-22: Argument `int | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | SupportsTrunc | str` in function `int.__new__` [bad-argument-type]
- ERROR scipy/spatial/transform/_rigid_transform.py:52:25-43: The type of `cython_compatible` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR scipy/spatial/transform/_rigid_transform.py:53:29-46: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rigid_transform.py:49:14-28: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
+ ERROR scipy/spatial/transform/_rigid_transform.py:52:25-39: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rigid_transform.py:469:56-71: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rigid_transform.py:458:12-24: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rigid_transform.py:460:69-81: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rigid_transform.py:465:24-35: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
+ ERROR scipy/spatial/transform/_rigid_transform.py:469:56-67: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rigid_transform.py:685:38-58: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rigid_transform.py:685:38-54: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rigid_transform.py:845:38-75: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rigid_transform.py:846:42-52: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rigid_transform.py:841:12-28: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rigid_transform.py:843:70-86: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rigid_transform.py:845:56-71: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rigid_transform.py:900:38-56: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rigid_transform.py:900:38-52: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rigid_transform.py:1843:46-52: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rigid_transform.py:1841:55-66: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
+ ERROR scipy/spatial/transform/_rigid_transform.py:1844:29-40: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation.py:428:56-87: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation.py:417:12-22: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:419:64-74: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:425:24-33: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:428:74-83: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation.py:653:38-71: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation.py:653:56-67: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation.py:724:38-71: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation.py:724:56-67: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation.py:812:38-71: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation.py:812:56-67: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation.py:999:38-68: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation.py:999:56-64: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation.py:1699:25-42: The type of `single_vector` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR scipy/spatial/transform/_rotation.py:1706:29-69: The type of `cython_compatible` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR scipy/spatial/transform/_rotation.py:1707:44-79: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rotation.py:1708:44-51: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation.py:1699:25-37: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:1702:12-25: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:1703:71-84: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:1706:53-65: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation.py:2783:22-27: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
+ ERROR scipy/spatial/transform/_rotation.py:2771:12-22: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `ndim` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:2777:12-23: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:2780:62-73: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any` has no attribute `shape` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation.py:2815:30-40: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation.py:2818:64-80: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any | Unknown` has no attribute `dtype` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation.py:2828:44-57: Cannot index into `Buffer` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2828:44-57: Cannot index into `_SupportsArray[dtype]` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2828:44-57: Cannot index into `complex` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2837:66-79: Cannot index into `Buffer` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2837:66-79: Cannot index into `_SupportsArray[dtype]` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2837:66-79: Cannot index into `complex` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2838:20-34: Cannot index into `Buffer` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2838:20-34: Cannot index into `_SupportsArray[dtype]` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2838:20-34: Cannot index into `complex` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2841:34-49: Cannot index into `Buffer` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2841:34-49: Cannot index into `_SupportsArray[dtype]` [bad-index]
+ ERROR scipy/spatial/transform/_rotation.py:2841:34-49: Cannot index into `complex` [bad-index]
+ ERROR scipy/spatial/transform/_rotation_xp.py:249:16-30: The type of `num_axes` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR scipy/spatial/transform/_rotation_xp.py:285:15-39: The type of `q_shape` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR scipy/spatial/transform/_rotation_xp.py:289:20-28: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: The type of `neg_weights` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: `<` is not supported between `Buffer` and `Literal[0]` [unsupported-operation]
+ ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: `<` is not supported between `_NestedSequence[bytes | complex | str]` and `Literal[0]` [unsupported-operation]
+ ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: `<` is not supported between `_NestedSequence[_SupportsArray[dtype]]` and `Literal[0]` [unsupported-operation]
+ ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: `<` is not supported between `_SupportsArray[dtype]` and `Literal[0]` [unsupported-operation]
+ ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: `<` is not supported between `bytes` and `Literal[0]` [unsupported-operation]
+ ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: `<` is not supported between `complex` and `Literal[0]` [unsupported-operation]
+ ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: `<` is not supported between `str` and `Literal[0]` [unsupported-operation]
+ ERROR scipy/spatial/transform/_rotation_xp.py:521:23-34: `<` is not supported between `None` and `Literal[0]` [unsupported-operation]
- ERROR scipy/spatial/transform/_rotation_xp.py:529:47-60: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation_xp.py:529:47-60: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any | None` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation_xp.py:532:20-33: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str | Any | None` has no attribute `shape` [missing-attribute]
- ERROR scipy/spatial/transform/_rotation_xp.py:583:30-34: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rotation_xp.py:584:30-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/spatial/transform/_rotation_xp.py:617:36-46: Object of class `NoneType` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation_xp.py:619:12-35: `None` is not subscriptable [unsupported-operation]
+ ERROR scipy/spatial/transform/_rotation_xp.py:621:13-38: `None` is not subscriptable [unsupported-operation]
- ERROR scipy/spatial/transform/_rotation_xp.py:624:28-32: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rotation_xp.py:624:50-55: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rotation_xp.py:700:28-39: The type of `negative_weights` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR scipy/spatial/transform/_rotation_xp.py:689:12-24: Object of class `NoneType` has no attribute `ndim` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation_xp.py:691:70-83: Object of class `NoneType` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation_xp.py:693:23-36: Object of class `NoneType` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation_xp.py:696:33-46: Object of class `NoneType` has no attribute `shape` [missing-attribute]
+ ERROR scipy/spatial/transform/_rotation_xp.py:700:28-39: `<` is not supported between `None` and `Literal[0]` [unsupported-operation]
- ERROR scipy/spatial/transform/_rotation_xp.py:740:57-64: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rotation_xp.py:741:75-82: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rotation_xp.py:747:67-74: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/spatial/transform/_rotation_xp.py:749:61-68: The type of this argument is unknown [unknown-argument-type]
- ERROR scipy/stats/_entropy.py:154:28-30: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/stats/_entropy.py:327:9-21: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` has no attribute `shape` [missing-attribute]
- ERROR scipy/stats/_entropy.py:327:9-25: The type of `n` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR scipy/stats/_entropy.py:330:46-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR scipy/stats/_entropy.py:368:27-39: Object of type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` has no attribute `dtype` [missing-attribute]
colour (https://github.com/colour-science/colour)
- ERROR colour/geometry/primitives.py:198:8-12: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/geometry/primitives.py:200:10-14: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/geometry/primitives.py:202:10-14: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/geometry/vertices.py:98:9-13: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/geometry/vertices.py:419:9-13: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/models/rgb/rgb_colourspace.py:1078:19-37: The type of `RGB` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR colour/models/rgb/rgb_colourspace.py:1059:13-35: Object of class `str` has no attribute `whitepoint` [missing-attribute]
+ ERROR colour/models/rgb/rgb_colourspace.py:1061:26-48: Object of class `str` has no attribute `whitepoint` [missing-attribute]
+ ERROR colour/models/rgb/rgb_colourspace.py:1062:29-58: Object of class `str` has no attribute `matrix_XYZ_to_RGB` [missing-attribute]
+ ERROR colour/models/rgb/rgb_colourspace.py:1063:25-50: Object of class `str` has no attribute `cctf_encoding` [missing-attribute]
+ ERROR colour/models/rgb/rgb_colourspace.py:1193:13-35: Object of class `str` has no attribute `whitepoint` [missing-attribute]
+ ERROR colour/models/rgb/rgb_colourspace.py:1195:26-48: Object of class `str` has no attribute `whitepoint` [missing-attribute]
+ ERROR colour/models/rgb/rgb_colourspace.py:1196:29-58: Object of class `str` has no attribute `matrix_RGB_to_XYZ` [missing-attribute]
+ ERROR colour/models/rgb/rgb_colourspace.py:1197:25-50: Object of class `str` has no attribute `cctf_decoding` [missing-attribute]
- ERROR colour/plotting/volume.py:542:37-42: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/plotting/volume.py:543:13-18: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/plotting/volume.py:599:41-46: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/plotting/volume.py:600:17-22: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/plotting/volume.py:626:54-59: The type of this argument is unknown [unknown-argument-type]
- ERROR colour/plotting/volume.py:627:64-69: The type of this argument is unknown [unknown-argument-type]
urllib3 (https://github.com/urllib3/urllib3)
- ERROR src/urllib3/connectionpool.py:756:49-50: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR src/urllib3/connectionpool.py:921:31-38: Type `None` is not iterable [not-iterable]
- ERROR src/urllib3/util/ssl_.py:254:35-54: `int | Unknown` is not assignable to attribute `minimum_version` with type `TLSVersion` [bad-assignment]
+ ERROR src/urllib3/util/ssl_.py:254:35-54: `int` is not assignable to attribute `minimum_version` with type `TLSVersion` [bad-assignment]
- ERROR src/urllib3/util/ssl_.py:259:35-54: `int | Unknown` is not assignable to attribute `maximum_version` with type `TLSVersion` [bad-assignment]
+ ERROR src/urllib3/util/ssl_.py:259:35-54: `int` is not assignable to attribute `maximum_version` with type `TLSVersion` [bad-assignment]
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- ERROR sklearn/datasets/_openml.py:1028:30-39: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/datasets/_openml.py:1059:52-59: Argument `int | None` is not assignable to parameter `data_id` with type `int` in function `_get_data_description_by_id` [bad-argument-type]
+ ERROR sklearn/datasets/_openml.py:1118:40-47: Argument `int | None` is not assignable to parameter `data_id` with type `int` in function `_get_data_features` [bad-argument-type]
+ ERROR sklearn/datasets/_openml.py:1154:46-53: Argument `int | None` is not assignable to parameter `data_id` with type `int` in function `_get_data_qualities` [bad-argument-type]
+ ERROR sklearn/externals/array_api_compat/common/_helpers.py:839:18-24: Cannot use `int` as a context manager [bad-context-manager]
+ ERROR sklearn/externals/array_api_compat/common/_helpers.py:839:18-24: Cannot use `int` as a context manager [bad-context-manager]
+ ERROR sklearn/externals/array_api_compat/common/_helpers.py:839:18-24: Cannot use `None` as a context manager [bad-context-manager]
+ ERROR sklearn/externals/array_api_compat/common/_helpers.py:839:18-24: Cannot use `None` as a context manager [bad-context-manager]
- ERROR sklearn/externals/array_api_compat/common/_helpers.py:1061:14-15: The type of this argument is unknown [unknown-argument-type]
+ ERROR sklearn/externals/array_api_compat/dask/array/_aliases.py:167:16-24: Object of type `NestedSequence[complex] | complex | Unknown` has no attribute `copy` [missing-attribute]
- ERROR sklearn/externals/array_api_extra/_lib/_at.py:464:62-63: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/externals/array_api_extra/_lib/_at.py:478:62-63: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/externals/array_api_extra/_lib/_funcs.py:218:24-25: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/externals/array_api_extra/_lib/_funcs.py:256:20-21: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/externals/array_api_extra/_lib/_funcs.py:261:27-28: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/externals/array_api_extra/_lib/_funcs.py:531:71-72: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/externals/array_api_extra/_lib/_funcs.py:700:23-24: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/externals/array_api_extra/_lib/_funcs.py:700:26-27: The type of this argument is unknown [unknown-argument-type]
- ERROR sklearn/externals/array_api_extra/_lib/_utils/_helpers.py:319:36-37: Unused `# type: ignore` comment [unused-type-ignore]
aiortc (https://github.com/aiortc/aiortc)
- ERROR src/aiortc/rtcpeerconnection.py:997:21-59: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR src/aiortc/rtcpeerconnection.py:999:21-1001:22: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
materialize (https://github.com/MaterializeInc/materialize)
- ERROR misc/dbt-materialize/dbt/adapters/materialize/impl.py:421:16-28: Returning implicit Any from function declared to return "str | None" [no-any-return-implicit]
- ERROR test/restart/mzcompose.py:285:50-61: Implicit conversion of `list[str] | Any` to `bool` is not allowed [implicit-bool]
+ ERROR test/restart/mzcompose.py:285:50-61: Implicit conversion of `list[str]` to `bool` is not allowed [implicit-bool]
freqtrade (https://github.com/freqtrade/freqtrade)
- ERROR freqtrade/data/btanalysis/bt_fileutils.py:604:12-18: Returning implicit Any from function declared to return "DataFrame" [no-any-return-implicit]
- ERROR freqtrade/exchange/binance.py:182:47-63: The type of this argument is unknown [unknown-argument-type]
- ERROR freqtrade/exchange/binance.py:184:20-53: Implicit conversion of `Literal[0] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR freqtrade/exchange/binance.py:184:20-53: Implicit conversion of `Literal[0] | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR freqtrade/exchange/exchange.py:415:12-23: Implicit conversion of `dict[str, Any] | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR freqtrade/exchange/exchange.py:415:12-23: Implicit conversion of `dict[str, Any]` to `bool` is not allowed [implicit-bool]
+ ERROR freqtrade/exchange/exchange.py:3466:91-96: Argument `int | None` is not assignable to parameter `until` with type `int` in function `Exchange._async_get_trade_history_time` [bad-argument-type]
+ ERROR freqtrade/exchange/exchange.py:3469:47-52: Argument `int | None` is not assignable to parameter `until` with type `int` in function `Exchange._async_get_trade_history_id` [bad-argument-type]
- ERROR freqtrade/freqai/freqai_interface.py:349:21-41: Argument `DataFrame | Series | Unknown` is not assignable to parameter `dataframe` with type `DataFrame` in function `freqtrade.strategy.interface.IStrategy.set_freqai_targets` [bad-argument-type]
+ ERROR freqtrade/freqai/freqai_interface.py:349:21-41: Argument `DataFrame | Series` is not assignable to parameter `dataframe` with type `DataFrame` in function `freqtrade.strategy.interface.IStrategy.set_freqai_targets` [bad-argument-type]
- ERROR freqtrade/freqai/freqai_interface.py:353:21-44: Argument `DataFrame | Series | Unknown` is not assignable to parameter `dataframe` with type `DataFrame` in function `freqtrade.strategy.interface.IStrategy.set_freqai_targets` [bad-argument-type]
+ ERROR freqtrade/freqai/freqai_interface.py:353:21-44: Argument `DataFrame | Series` is not assignable to parameter `dataframe` with type `DataFrame` in function `freqtrade.strategy.interface.IStrategy.set_freqai_targets` [bad-argument-type]
+ ERROR freqtrade/wallets.py:403:28-50: Comparison `==` between incompatible types `float` and `Literal['unlimited']` [incompatible-comparison]
pwndbg (https://github.com/pwndbg/pwndbg)
... (truncated 1486 lines) ... |
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.
Problem to fix: Assigning an
Anyvalue to a variable with a declared type erased the annotation.x: str = "hello"; x = f()(wheref() -> Any) madexbecomeAny, which brokeassert_typeand silenced later checks onx.Approach:
name_assign_inferalready kept the declared type when the first assignment after a bare annotation isAny; extend that to later reassignments too, sinceAnycarries no information to narrow with. This matches pyright/mypy and the for-loop /with aspaths that already preserve the declared type. Fixes 8bug-marked tests. (Attribute, unpacking, and walrus targets are separate paths, left for follow-up.)