Repository navigation
fix decorated class not transformed #1180 - #2294
asukaminato0721 wants to merge 6 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
49ec474 to
155055a
Compare
There was a problem hiding this comment.
Pull request overview
This PR fixes issue #1180 where class decorators that transform the class type were not being applied. Previously, decorated classes always retained their type[ClassName] type, ignoring the decorator's return type. Now, decorators are properly applied during class definition type resolution, mirroring Python's bottom-up decorator semantics.
Changes:
- Added type transformation logic for class decorators during binding resolution
- Implemented
apply_class_decoratormethod to handle decorator application with special cases for class-preserving decorators - Added
is_bootstrapping()helper to check stdlib initialization state
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyrefly/lib/test/decorators.rs | Added test case verifying that a class decorator returning int transforms the class type from type[C] to int |
| pyrefly/lib/alt/solve.rs | Updated ClassDef binding resolution to iterate through decorators and apply them bottom-up to the class type |
| pyrefly/lib/alt/function.rs | Implemented apply_class_decorator method that handles decorator application, preserving class type for special decorators like @dataclass, @final, etc. |
| crates/pyrefly_types/src/stdlib.rs | Added is_bootstrapping() method to check if stdlib is still initializing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
8907253 to
5731ff9
Compare
This comment was marked as outdated.
This comment was marked as outdated.
connernilsen
left a comment
There was a problem hiding this comment.
Hey Asuka, thanks for doing this! Just a few requests for testing
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
stroxler
left a comment
There was a problem hiding this comment.
Sorry I've been trying to unblock this for a bit, I think it's a really good change but it's also a big one in that it fans out through signatures of modules and libraries.
Based on what I see right now, I think that we might actually need a configuration flag for this because we care about migration paths.
Based on the following example:
import typing
from typing import Callable, reveal_type, Annotated
def dec(c) -> int:
return 5
@dec
class C:
pass
reveal_type(C)
it appears that ty and Pyright both agree that C is int, but mypy and Pyrefly agree that C is a class. So the type checkers are making incompatible assumptions about the signature here, which is always bad (because disagreement about signatures crosses library boundaries).
I'm inclined to think we should still make the change (especially because irreconcilable signature-level disagreements between ty and Pyrefly worry me). But based on both knowing mypy behavior and seeing what happens to a few codebases we monitor, I think we might need a mypy compatibility setting that discards class decorators as in the status-quo.
Otherwise (a) our migration story from mypy becomes weaker, and (b) the next upgrade could be highly disruptive for some users (especially monorepo-scale corporate users where a breaking change with large fanout is a problem).
The spiciest question in my mind is actually the default behavior to use.
- Since mypy is still the dominant type checker today I wonder whether the default should be the status-quo.
- This has the big advantage of not creating a disruptive upgrade. this change, for example, causes a significant mess due to poorly annotated class decorators
- in Pytorch (easy to fix though, it's not that big)
- in at least a few large internal codebases (harder to fix in one go, and not something we would want to block upgrade)
On the other hand, I see three reasons why the default should maybe be to take this fix:
- interpreting the decorator seems more principled, and pyright already does this. Historically, Pyrefly has usually sided with pyright when we think the behavior is better
- ty's market share is growing quickly, so I worry a lot about signature-level incompatibility with ty as a long-term problem for the library ecosystem. Divergence is bad for users of either checker
- as a rule it's easier to fix code where a decorator just needs to be updated to propagate a class forward (as in the ty/pyright behavior) than where the type checker hardcodes that a decorator has no effect (as in the Pyrefly/mypy behavior). Basically, pyrefly and mypy are outright banning a class of legal python, whereas the other type checkers just ask you for correct annotations.
I kind of lean toward the default setting being to interpret class decorators as the best long-term solution, but our release notes need to call the change out very clearly because I think it could be disruptive to upgrade unless the upgrader is aware of this behavior change, which fans out a lot more than our usual changes do.
We also could potentially add a warning for decorators that don't propagate the class, which would be useful for library authors who might want to know that mypy will give divergent results. It's possible that changing the default in stages, with this warning, would be better than a single breaking change.
cc @rchen152 , @connernilsen , @DetachHead , @kinto0, @QEDady - thoughts on the behavior here? The hard thing isn't the narrow technical question of best behavior (clearly this change is better on technical grounds) but the ecosystem and large-scale codebase problems.
|
i definitely think pyrefly should work properly by default. years ago when i was forced to use mypy, this issue was very annoying. mypy is clearly wrong here, so there's no reason pyrefly should copy that behavior (at least not by default). not sure if it helps, but i should probably also mention something unusual pyright does with class decorators. if the decorator is untyped, instead of turning the class's type into from typing import reveal_type
def deco(cls: type):
return some_untyped_thing()
@deco # error: Untyped class decorator obscures type of class; ignoring decorator
class B: ...
reveal_type(B) # type[B]as far as i'm aware nothing else in pyright does this. when calling the reveal_type(deco(B)) # Unknowni'm not really a fan of this behavior either, but it could potentially be a good compromise. |
|
Good point. We probably should just have a flag with three different values
I suspect Pyright / ty compatibility mode is the best default, even if it is less principled, because consistency with the ecosystem is a big concern for our default behavior. |
100% agree. Analogous conversation from ty land: astral-sh/ty#143 |
This comment was marked as outdated.
This comment was marked as outdated.
|
would love to merge this. I think all that's left is the settings for it? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
I'm taking myself off as a reviewer because @kinto0 is trying to drive this to completion, and I need to focus on other parts of the backlog.
That said, the mypy primer results now look pretty bad, whereas before they looked good: I think something must have gone wrong in the most recent iteration. Probably worth a look from you @asukaminato0721 before we put this in Kyle's review queue
Also am confused by the website build errors. It surprised me to see them. but they do kind of look like actual compile errors. No idea why there would be a wasm-specific problem here - maybe a config struct is out of sync or something?
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
|
Thanks! Most of the latest primer regression (+29k, mostly spack/core/pandera) looks like untyped class decorators turning the class into |
|
Diff from mypy_primer, showing the effect of this PR on open source code: ============================================================
SUMMARY
============================================================
Total: +29212 new errors, -3245 fixed errors
By preset: +155/-407 (default), +160/-438 (strict)
Projects with changes (13):
jax: +1 -0
spark: +1 -0
freqtrade: +6 -4
pandera: +1641 -298
zulip: +26 -17
steam.py: +1 -4
antidote: +0 -1
sphinx: +0 -1
core: +2904 -190
spack: +24047 -2607
attrs: +39 -26
optuna: +41 -5
discord.py: +505 -92
============================================================
FULL DIFF DETAILS
------------------------------------------------------------
jax (https://github.com/google/jax)
+ ERROR jax/experimental/array_serialization/serialization_test.py:960:5-35: `UserPytreeAPITest.test_custom_node_registration.P` is not assignable to upper bound `Hashable` of type variable `H` [bad-specialization]
spark (https://github.com/apache/spark)
+ ERROR python/pyspark/testing/tests/test_skip_class.py:20:1-15: Argument `type[SkipClassTests]` is not assignable to parameter `reason` with type `str` in function `unittest.case.skip` [bad-argument-type]
freqtrade (https://github.com/freqtrade/freqtrade)
+ ERROR freqtrade/rpc/rpc.py:428:28-430:14: The type of `curdayprofit` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR freqtrade/rpc/rpc.py:429:17-97: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR freqtrade/rpc/rpc.py:429:23-39: The type of attribute `close_profit_abs` is unknown because it comes from an error [unknown-from-error]
+ ERROR freqtrade/rpc/rpc.py:429:23-39: The type of attribute `close_profit_abs` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR freqtrade/rpc/rpc.py:429:69-85: The type of attribute `close_profit_abs` is unknown because it comes from an error [unknown-from-error]
+ ERROR freqtrade/rpc/rpc.py:429:69-85: The type of attribute `close_profit_abs` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR freqtrade/rpc/rpc.py:432:27-53: The type of `daily_stake` is unknown because it comes from an error [unknown-from-error]
+ ERROR freqtrade/rpc/rpc.py:432:27-53: The type of `daily_stake` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR freqtrade/rpc/rpc.py:436:37-63: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR freqtrade/rpc/rpc.py:436:37-63: The type of this argument is unknown [unknown-argument-type]
pandera (https://github.com/pandera-dev/pandera)
+ ERROR pandera/api/ibis/model.py:71:60-68: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/ibis/model.py:75:29-54: The type of `dtype` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/ibis/model.py:75:40-54: The type of attribute `raw_annotation` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandera/api/ibis/model.py:101:17-104:25: Implicit conversion of `Literal[True] | type[Any] | type[DataType] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR pandera/api/ibis/model.py:101:17-104:25: Implicit conversion of `Literal[True] | type[Any] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR pandera/api/ibis/model.py:113:25-30: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/array.py:29:35-62: Expected class object, got `(...) -> Unknown` [invalid-argument]
+ ERROR pandera/api/pandas/array.py:29:49-62: The type of attribute `PydanticModel` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/container.py:71:25-52: Expected class object, got `(...) -> Unknown` [invalid-argument]
+ ERROR pandera/api/pandas/container.py:71:39-52: The type of attribute `PydanticModel` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/container.py:74:51-55: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR pandera/api/pandas/container.py:75:29-52: Object of class `DataType` has no attribute `column_names` [missing-attribute]
+ ERROR pandera/api/pandas/model.py:66:26-76:6: The type of `nullable_dtype_map` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:67:22-26: The type of attribute `Bool` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:67:42-46: The type of attribute `BOOL` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:68:22-26: The type of attribute `Int8` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:68:42-46: The type of attribute `INT8` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:69:22-27: The type of attribute `Int16` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:69:43-48: The type of attribute `INT16` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:70:22-27: The type of attribute `Int32` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:70:43-48: The type of attribute `INT32` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:71:22-27: The type of attribute `Int64` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:71:43-48: The type of attribute `INT64` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:72:22-27: The type of attribute `UInt8` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:72:43-48: The type of attribute `UINT8` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:73:22-28: The type of attribute `UInt16` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:73:44-50: The type of attribute `UINT16` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:74:22-28: The type of attribute `UInt32` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:74:44-50: The type of attribute `UINT32` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:75:22-28: The type of attribute `UInt64` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:75:44-50: The type of attribute `UINT64` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:78:59-64: The type of attribute `items` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:78:64-66: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pandas/model.py:326:27-32: The type of attribute `dtype` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandera/api/polars/model.py:69:64-72: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandera/api/polars/model.py:97:43-69: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR pandera/api/polars/model.py:92:50-63: The type of attribute `PanderaSchema` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandera/api/polars/model.py:123:17-126:25: Implicit conversion of `Literal[True] | type[Any] | PanderaSchema | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR pandera/api/polars/model.py:123:17-126:25: Implicit conversion of `Literal[True] | type[Any] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR pandera/api/polars/model.py:289:39-55: Expected class object, got `(...) -> Unknown` [invalid-argument]
+ ERROR pandera/api/polars/model.py:289:42-55: The type of attribute `PydanticModel` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/polars/model.py:290:44-75: Object of class `DataType` has no attribute `_get_polars_schema` [missing-attribute]
+ ERROR pandera/api/pyarrow/model.py:112:60-68: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pyarrow/model.py:116:25-50: The type of `dtype` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/api/pyarrow/model.py:116:36-50: The type of attribute `raw_annotation` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandera/api/pyarrow/model.py:141:12-46: Implicit conversion of `Literal[True] | type[Any] | type[DataType] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR pandera/api/pyarrow/model.py:141:12-46: Implicit conversion of `Literal[True] | type[Any] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR pandera/api/pyarrow/model.py:149:21-26: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/backends/narwhals/components.py:319:47-55: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/backends/narwhals/components.py:330:33-41: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/backends/narwhals/components.py:330:57-65: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/backends/narwhals/container.py:742:51-59: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/backends/narwhals/container.py:747:54-62: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/backends/narwhals/container.py:748:43-56: The type of this argument is unknown [unknown-argument-type]
+ ERROR pandera/backends/pandas/container.py:254:35-62: Expected class object, got `(...) -> Unknown` [invalid-argument]
+ ERROR pandera/backends/pandas/container.py:254:49-62: The type of attribute `PydanticModel` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR pandera/backends/xarray/base.py:182:45-54: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR pandera/backends/xarray/base.py:182:20-55: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR pandera/backends/xarray/base.py:182:34-44: The type of attribute `try_coerce` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandera/dtypes.py:162:23-30: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:184:12-19: Type of base class is Unknown [unknown-base-class]
- ERROR pandera/dtypes.py:174:9-16: Class member `_PhysicalNumber.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- ERROR pandera/dtypes.py:187:9-16: Class member `Bool.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- ERROR pandera/dtypes.py:197:30-44: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR pandera/dtypes.py:206:9-14: Class member `Int.check` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- ERROR pandera/dtypes.py:215:9-16: Class member `Int.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- ERROR pandera/dtypes.py:261:9-16: Class member `UInt.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- ERROR pandera/dtypes.py:305:32-46: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR pandera/dtypes.py:313:9-14: Class member `Float.check` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
+ ERROR pandera/dtypes.py:211:46-52: The type of attribute `signed` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandera/dtypes.py:212:49-58: The type of attribute `bit_width` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandera/dtypes.py:222:13-16: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:229:13-18: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:236:13-18: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:243:12-17: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:255:12-15: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:268:14-18: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:276:14-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:284:14-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:292:13-19: Type of base class is Unknown [unknown-base-class]
- ERROR pandera/dtypes.py:321:9-16: Class member `Float.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- ERROR pandera/dtypes.py:361:34-48: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR pandera/dtypes.py:367:9-14: Class member `Complex.check` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
+ ERROR pandera/dtypes.py:318:49-58: The type of attribute `bit_width` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandera/dtypes.py:328:16-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:335:15-23: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:342:15-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:349:15-22: Type of base class is Unknown [unknown-base-class]
- ERROR pandera/dtypes.py:375:9-16: Class member `Complex.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
+ ERROR pandera/dtypes.py:372:49-58: The type of attribute `bit_width` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandera/dtypes.py:382:18-25: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:390:18-25: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:398:17-27: Type of base class is Unknown [unknown-base-class]
- ERROR pandera/dtypes.py:421:5-10: Class member `Decimal.exact` overrides parent class `_Number` in an inconsistent manner [bad-override-mutable-attribute]
- ERROR pandera/dtypes.py:422:5-15: Class member `Decimal.continuous` overrides parent class `_Number` in an inconsistent manner [bad-override-mutable-attribute]
+ ERROR pandera/dtypes.py:418:15-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:443:17-25: The type of attribute `__init__` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR pandera/dtypes.py:466:9-16: Class member `Decimal.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
+ ERROR pandera/dtypes.py:495:54-64: The type of attribute `categories` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR pandera/dtypes.py:532:9-16: Class member `Timestamp.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
+ ERROR pandera/dtypes.py:529:17-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/dtypes.py:536:12-21: The type of `DateTime` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:580:39-42: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:586:39-43: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:591:39-44: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:596:39-46: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:601:39-46: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:606:39-43: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:611:39-45: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:616:39-47: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:621:39-47: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:626:39-48: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/dtypes.py:631:39-45: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/engines/geopandas_engine.py:39:16-38: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/geopandas_engine.py:39:30-38: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/engines/geopandas_engine.py:49:12-27: The type of this attribute is unknown because it comes from an error [unknown-from-error]
- ERROR pandera/engines/geopandas_engine.py:154:35-39: The type of attribute `type` is an explicit `Any` [explicit-any-use]
+ ERROR pandera/engines/geopandas_engine.py:154:35-39: The type of attribute `type` is unknown because it comes from an error [unknown-from-error]
- ERROR pandera/engines/geopandas_engine.py:169:16-60: Implicit conversion of `Iterable[bool] | bool` to `bool` is not allowed [implicit-bool]
- ERROR pandera/engines/geopandas_engine.py:169:24-29: The type of attribute `check` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/engines/geopandas_engine.py:164:38-46: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/engines/geopandas_engine.py:169:24-29: The type of attribute `check` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandera/engines/ibis_engine.py:75:49-57: The type of attribute `DataType` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR pandera/engines/ibis_engine.py:117:12-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:117:22-33: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:139:12-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:139:22-33: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:156:13-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:156:23-35: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:173:13-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:173:23-35: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:191:13-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:191:23-35: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:213:13-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:213:23-35: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:230:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:230:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:247:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:247:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:264:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:264:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:286:15-23: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:286:25-39: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:304:15-23: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:304:25-39: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:327:15-23: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:327:25-39: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:333:16-20: This expression is implicitly inferred to be `Any | None`. Please provide an explicit type annotation. [implicit-any-attribute]
+ ERROR pandera/engines/ibis_engine.py:333:16-20: This expression's type is partially unknown; it contains an implicit `Any`. Please provide an explicit type annotation. [partially-unknown-type]
+ ERROR pandera/engines/ibis_engine.py:373:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:373:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:391:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:391:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:414:12-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:414:22-33: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:433:16-24: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:433:26-41: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:469:12-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:469:22-33: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:486:17-25: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:486:27-43: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/ibis_engine.py:513:11-19: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:157:12-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:157:22-33: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:167:13-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:167:23-35: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:177:13-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:177:23-35: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:187:13-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:187:23-35: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:197:13-21: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:197:23-35: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:207:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:207:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:217:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:217:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:227:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:227:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:242:15-23: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:242:25-39: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:258:15-23: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:258:25-39: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:280:14-22: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:280:24-37: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:290:12-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:290:22-33: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:305:12-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:305:22-33: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:315:16-24: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:315:26-41: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:349:16-24: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:349:26-42: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:385:19-27: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:385:29-44: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:393:12-20: Type of base class is Unknown [unknown-base-class]
+ ERROR pandera/engines/narwhals_engine.py:411:14-22: Type of base class is Unknown [unknown-base-class]
... (truncated 1743 lines) ...
zulip (https://github.com/zulip/zulip)
- ERROR zerver/tests/test_auth_backends.py:3123:52-92: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR zerver/tests/test_auth_backends.py:3123:16-51: Class `ExternalAuthMethod` has no class attribute `get_data_from_redis` [missing-attribute]
- ERROR zerver/tests/test_auth_backends.py:3126:30-42: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR zerver/tests/test_auth_backends.py:3128:30-47: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR zerver/tests/test_auth_backends.py:3126:30-42: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR zerver/tests/test_auth_backends.py:3128:30-47: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR zerver/tests/test_auth_backends.py:3727:37-70: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:3760:37-70: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:3793:33-66: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:3813:33-66: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:3825:33-66: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:3837:33-66: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:3883:29-62: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:3909:29-62: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:3988:33-66: Class `ExternalAuthMethod` has no class attribute `put_data_in_redis` [missing-attribute]
+ ERROR zerver/tests/test_auth_backends.py:4163:17-34: Result of call expression is of type `ExternalAuthMethod` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR zerver/tests/test_auth_backends.py:4627:62-94: Class `ExternalAuthMethod` has no class attribute `ID_TOKEN_ISSUER` [missing-attribute]
- ERROR zerver/tests/test_auth_backends.py:4627:19-95: The type of `payload` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR zerver/tests/test_auth_backends.py:4627:79-94: The type of attribute `ID_TOKEN_ISSUER` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR zerver/tests/test_auth_backends.py:5392:17-46: Result of call expression is of type `ExternalAuthMethod` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR zerver/views/auth.py:768:24-52: Class `ExternalAuthMethod` has no class attribute `check_config` [missing-attribute]
+ ERROR zerver/views/auth.py:772:24-64: Class `ExternalAuthMethod` has no class attribute `check_config` [missing-attribute]
+ ERROR zerver/views/auth.py:789:35-64: Class `ExternalAuthMethod` has no class attribute `check_config` [missing-attribute]
+ ERROR zproject/backends.py:3542:16-35: Object of class `ExternalAuthMethod` has no attribute `logger` [missing-attribute]
+ ERROR zproject/backends.py:3597:18-51: Object of class `ExternalAuthMethod` has no attribute `generate_saml_config` [missing-attribute]
- ERROR zproject/backends.py:3597:18-53: The type of `config` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR zproject/backends.py:3597:31-51: The type of attribute `generate_saml_config` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR zproject/backends.py:3615:18-51: Object of class `ExternalAuthMethod` has no attribute `generate_saml_config` [missing-attribute]
- ERROR zproject/backends.py:3615:18-53: The type of `config` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR zproject/backends.py:3615:31-51: The type of attribute `generate_saml_config` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR zproject/backends.py:3637:18-51: Object of class `ExternalAuthMethod` has no attribute `generate_saml_config` [missing-attribute]
- ERROR zproject/backends.py:3637:18-53: The type of `config` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR zproject/backends.py:3637:31-51: The type of attribute `generate_saml_config` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR zproject/backends.py:4619:27-59: Object of class `ExternalAuthMethod` has no attribute `strategy` [missing-attribute]
+ ERROR zproject/backends.py:4621:15-46: Object of class `ExternalAuthMethod` has no attribute `get_idp` [missing-attribute]
+ ERROR zproject/backends.py:4622:16-57: Object of class `ExternalAuthMethod` has no attribute `_create_saml_auth` [missing-attribute]
- ERROR zproject/backends.py:4619:51-59: The type of attribute `strategy` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR zproject/backends.py:4622:16-62: The type of `auth` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR zproject/backends.py:4622:40-57: The type of attribute `_create_saml_auth` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR zproject/backends.py:4623:14-25: The type of attribute `process_slo` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR zproject/backends.py:4624:18-35: The type of `errors` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR zproject/backends.py:4624:18-35: The type of `errors` is unknown because it comes from an error [unknown-from-error]
- ERROR zproject/backends.py:4624:23-33: The type of attribute `get_errors` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
steam.py (https://github.com/Gobot1234/steam.py)
- ERROR steam/state.py:488:35-42: Argument `UserMessage` is not assignable to parameter `x` with type `Message` in function `collections.deque.append` [bad-argument-type]
- ERROR steam/state.py:521:31-38: Argument `UserMessage[ClientUser]` is not assignable to parameter `x` with type `Message` in function `collections.deque.append` [bad-argument-type]
+ ERROR steam/state.py:1576:37-46: Protected attribute `_location` cannot be accessed outside of its defining class or a subclass [protected-access]
- ERROR steam/user.py:246:36-252:22: No matching overload found for function `steam.reaction.MessageReaction.__init__` called with arguments: (ConnectionState, UserMessage, Emoticon, None, ClientUser | Self@User) [no-matching-overload]
- ERROR steam/user.py:258:36-264:22: No matching overload found for function `steam.reaction.MessageReaction.__init__` called with arguments: (ConnectionState, UserMessage, None, Sticker, ClientUser | Self@User) [no-matching-overload]
antidote (https://github.com/Finistere/antidote)
- ERROR tests/lib/interface/test_class.py:423:39-53: Unused `# type: ignore` comment [unused-type-ignore]
sphinx (https://github.com/sphinx-doc/sphinx)
- ERROR sphinx/builders/linkcheck.py:756:29-42: Identity comparison between an instance of `dict[Pattern[str], Pattern[str]]` and class `_SENTINEL_LAR` is always False [unnecessary-comparison]
core (https://github.com/home-assistant/core)
- ERROR homeassistant/auth/mfa_modules/notify.py:356:37-49: The type of attribute `async_notify` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/auth/mfa_modules/notify.py:356:19-49: Object of class `MultiFactorAuthModule` has no attribute `async_notify` [missing-attribute]
+ ERROR homeassistant/auth/mfa_modules/totp.py:216:26-218:18: The type of `result` is an explicit `Any` [explicit-any-use]
- ERROR homeassistant/auth/providers/command_line.py:154:43-63: The type of attribute `async_validate_login` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/auth/providers/command_line.py:154:23-63: Object of class `AuthProvider` has no attribute `async_validate_login` [missing-attribute]
+ WARN homeassistant/auth/providers/homeassistant.py:45:24-47: Redundant cast: `AuthProvider` is the same type as `AuthProvider` [redundant-cast]
- ERROR homeassistant/auth/providers/homeassistant.py:403:43-63: The type of attribute `async_validate_login` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/auth/providers/homeassistant.py:403:23-63: Object of class `AuthProvider` has no attribute `async_validate_login` [missing-attribute]
+ ERROR homeassistant/auth/providers/insecure_example.py:111:17-57: Object of class `AuthProvider` has no attribute `async_validate_login` [missing-attribute]
+ ERROR homeassistant/auth/providers/trusted_networks.py:252:13-54: Object of class `AuthProvider` has no attribute `async_validate_access` [missing-attribute]
+ ERROR homeassistant/components/acaia/config_flow.py:87:68-92:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/accuweather/config_flow.py:77:75-79:26: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/adax/config_flow.py:75:59-80:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aemet/config_flow.py:76:67-78:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aerosmart/config_flow.py:39:18-41:2: The type of `UNIT_ID_SCHEMA` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aerosmart/config_flow.py:39:32-41:2: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aerosmart/config_flow.py:45:51-47:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aerosmart/config_flow.py:48:75-50:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aerosmart/config_flow.py:62:59-61: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aerosmart/config_flow.py:63:83-65:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/ai_task/services.py:90:29-42: The type of attribute `MediaSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/ai_task/services.py:90:42-81: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/ai_task/services.py:107:29-42: The type of attribute `MediaSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/ai_task/services.py:107:42-81: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/ai_task/services.py:126:29-42: The type of attribute `MediaSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/ai_task/services.py:126:42-81: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aidot/config_flow.py:24:21-36: The type of attribute `CountrySelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aidot/config_flow.py:24:36-28:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airly/config_flow.py:92:75-94:26: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airnow/config_flow.py:102:75-104:26: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airos/config_flow.py:230:84-235:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airos/config_flow.py:262:84-267:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airpatrol/config_flow.py:23:52-28:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airpatrol/config_flow.py:29:72-34:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airq/config_flow.py:39:86-88: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airq/config_flow.py:40:85-87: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/airzone_cloud/config_flow.py:67:63-75:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alexa_devices/config_flow.py:32:55-34:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alexa_devices/config_flow.py:35:72-39:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alexa_devices/config_flow.py:40:51-42:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alexa_devices/config_flow.py:47:72-51:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alexa_devices/config_flow.py:52:51-54:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alexa_devices/config_flow.py:59:72-63:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alexa_devices/config_flow.py:64:51-66:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alpha_bidet_infrared/config_flow.py:30:79-34:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/alpha_bidet_infrared/config_flow.py:66:66-71:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/amberelectric/config_flow.py:142:68-153:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/amberelectric/services.py:40:67-42:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/ambient_network/config_flow.py:98:40-77: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/ambient_network/config_flow.py:144:64-146:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/analytics_insights/config_flow.py:112:73-118:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/analytics_insights/config_flow.py:119:81-125:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/analytics_insights/config_flow.py:126:88-132:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/analytics_insights/config_flow.py:194:77-200:26: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/analytics_insights/config_flow.py:201:85-207:26: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/analytics_insights/config_flow.py:210:42-216:26: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/androidtv/config_flow.py:90:34-98:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/androidtv/config_flow.py:336:61-338:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/androidtv/config_flow.py:367:78-371:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/androidtv/config_flow.py:451:23-455:10: The type of `rule_schema` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/androidtv/config_flow.py:454:30-32: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/androidtv_remote/config_flow.py:299:65-305:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anglian_water/config_flow.py:37:52-64: The type of attribute `TextSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anglian_water/config_flow.py:37:64-66: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anglian_water/config_flow.py:38:69-81: The type of attribute `TextSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anglian_water/config_flow.py:38:81-40:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anglian_water/config_flow.py:46:48-60: The type of attribute `TextSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anglian_water/config_flow.py:46:60-62: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anglian_water/config_flow.py:217:70-84: The type of attribute `SelectSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anglian_water/config_flow.py:217:84-223:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:286:69-71: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:289:38-295:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:315:34-317:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:322:34-328:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:402:31-78: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:415:17-421:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:415:31-421:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:434:35-439:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:454:17-460:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/config_flow.py:454:31-460:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/anthropic/repairs.py:116:34-81: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/any_list/config_flow.py:32:52-34:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/any_list/config_flow.py:35:55-40:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/apcupsd/config_flow.py:17:14-28: The type of attribute `NumberSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/apcupsd/config_flow.py:17:28-21:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/asuswrt/config_flow.py:160:18-183:10: The type of `schema` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/asuswrt/config_flow.py:169:30-173:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aurora/config_flow.py:85:75-87:26: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/autoskope/config_flow.py:25:72-27:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/autoskope/config_flow.py:31:85-33:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/autoskope/config_flow.py:43:72-45:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aws_s3/config_flow.py:35:81-37:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/aws_s3/config_flow.py:41:24-78: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/axis/config_flow.py:269:28-64: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/axle_energy/config_flow.py:33:71-35:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/azure_data_explorer/config_flow.py:36:82-84: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/backblaze_b2/config_flow.py:37:79-39:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/backblaze_b2/config_flow.py:258:36-260:22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bang_olufsen/config_flow.py:71:85-73:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:133:22-36: The type of attribute `NumberSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:133:36-141:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:153:22-36: The type of attribute `NumberSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:153:36-161:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:170:56-75: The type of attribute `DeviceClassSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:170:75-172:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:178:70-82: The type of attribute `TextSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:178:82-84: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:185:22-36: The type of attribute `NumberSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:185:36-193:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:203:22-36: The type of attribute `NumberSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:203:36-211:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:220:48-60: The type of attribute `TextSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:220:60-62: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:226:53-67: The type of attribute `EntitySelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:226:67-228:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:229:52-64: The type of attribute `TextSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:229:64-234:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:240:53-67: The type of attribute `EntitySelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:240:67-242:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:243:49-63: The type of attribute `NumberSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:243:63-247:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:248:49-63: The type of attribute `NumberSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:248:63-252:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:259:58-74: The type of attribute `TemplateSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bayesian/config_flow.py:259:74-261:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/besen/config_flow.py:38:14-42:2: The type of `PIN_SCHEMA` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/besen/config_flow.py:38:23-35: The type of attribute `TextSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/besen/config_flow.py:38:35-42:2: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bitcoin/config_flow.py:46:78-50:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bluetooth/config_flow.py:51:18-61:2: The type of `_MODE_SELECTOR` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bluetooth/config_flow.py:51:32-61:2: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bluetti_modbus/config_flow.py:27:51-53: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bluetti_modbus/config_flow.py:29:27-33:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bluetti_modbus/config_flow.py:37:27-41:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bring/config_flow.py:31:52-36:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/bring/config_flow.py:37:72-42:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/brother/config_flow.py:31:81-36:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/brother/config_flow.py:50:81-55:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/brottsplatskartan/config_flow.py:17:52-68: The type of attribute `LocationSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/brottsplatskartan/config_flow.py:17:68-19:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/brottsplatskartan/config_flow.py:20:48-62: The type of attribute `SelectSelector` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/brottsplatskartan/config_flow.py:20:62-25:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
... (truncated 2952 lines) ...
spack (https://github.com/spack/spack)
+ ERROR lib/spack/spack/archspec.py:11:46-50: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/archspec.py:28:14-25: The type of `target` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR lib/spack/spack/archspec.py:28:19-25: The type of attribute `target` is unknown because it comes from an error [unknown-from-error]
+ ERROR lib/spack/spack/archspec.py:28:19-25: The type of attribute `target` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/archspec.py:30:17-39: The type of attribute `has_virtual_dependency` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/archspec.py:31:43-47: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/archspec.py:33:43-47: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/archspec.py:35:16-55: The type of `compiler` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/archspec.py:35:21-33: The type of attribute `dependencies` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/archspec.py:37:48-54: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR lib/spack/spack/archspec.py:37:48-54: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/archspec.py:37:56-64: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/archspec.py:41:79-83: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/archspec.py:57:42-72: Object of class `PackageBase` has no attribute `archspec_name` [missing-attribute]
+ ERROR lib/spack/spack/archspec.py:57:42-74: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/archspec.py:57:51-58: The type of attribute `package` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/archspec.py:57:59-72: The type of attribute `archspec_name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/audit.py:220:39-52: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR lib/spack/spack/audit.py:220:23-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:220:34-38: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:261:28-53: The type of `current_spec` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:261:39-43: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:263:17-24: The type of `variant` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:263:41-49: The type of attribute `variants` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:263:50-56: The type of attribute `values` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/audit.py:261:44-52: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:265:20-32: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:265:28-32: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:268:58-62: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:275:35-60: The type of attribute `prevalidate_variant_value` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:275:70-77: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:278:57-61: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:279:54-61: The type of this argument is unknown [unknown-argument-type]
- ERROR lib/spack/spack/audit.py:298:36-49: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR lib/spack/spack/audit.py:298:20-50: The type of `spec` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:298:31-35: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:299:36-76: The type of `regular_pkg_is_wrong` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:299:72-76: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:301:17-85: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:301:19-23: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:301:32-36: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:301:41-42: The type of `p` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:301:62-75: The type of attribute `providers_for` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:315:16-56: The type of `virtuals` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:315:47-56: The type of attribute `providers` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR lib/spack/spack/audit.py:365:77-87: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR lib/spack/spack/audit.py:365:27-60: The type of attribute `constrains_only_name_and_versions` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:365:61-88: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:365:72-76: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:477:13-22: The type of `condition` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:477:43-50: The type of attribute `patches` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:477:51-56: The type of attribute `items` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:477:56-58: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:527:38-45: The type of attribute `patches` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:527:46-52: The type of attribute `values` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:527:52-54: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:529:37-49: The type of attribute `dependencies` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:529:50-56: The type of attribute `values` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:529:56-58: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR lib/spack/spack/audit.py:531:33-44: Implicit conversion of `dict[Spec, list[Patch]] | None` to `bool` is not allowed [implicit-bool]
+ ERROR lib/spack/spack/audit.py:531:33-44: Implicit conversion of `dict[Unknown, list[Patch]] | None` to `bool` is not allowed [implicit-bool]
+ ERROR lib/spack/spack/audit.py:531:37-44: The type of attribute `patches` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:531:52-58: The type of attribute `values` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:531:58-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:540:43-55: The type of attribute `deprecations` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:540:56-62: The type of attribute `values` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:540:62-64: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR lib/spack/spack/audit.py:612:39-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:612:23-48: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:612:34-38: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:630:25-41: The type of attribute `canonical_source` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR lib/spack/spack/audit.py:631:33-41: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:631:17-42: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:631:28-32: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/audit.py:655:39-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:655:23-48: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:655:34-38: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/audit.py:743:39-47: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:743:23-48: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:743:34-38: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:760:13-14: The type of `_` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:760:33-42: The type of attribute `resources` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:760:43-48: The type of attribute `items` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:760:48-50: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1042:13-20: The type of `trigger` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1042:43-52: The type of attribute `conflicts` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1042:53-58: The type of attribute `items` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1042:58-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1046:21-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1046:32-36: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1053:17-25: The type of `conflict` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1057:25-50: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1057:36-40: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1066:13-20: The type of `trigger` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1066:46-58: The type of attribute `dependencies` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1066:59-64: The type of attribute `items` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1066:64-66: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1067:19-43: The type of `vrn` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1067:30-34: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1071:21-24: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1088:25-33: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1088:29-33: The type of attribute `spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1097:13-22: The type of `when_spec` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1097:34-42: The type of attribute `provided` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1101:21-30: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1110:13-16: The type of `vrn` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1110:28-37: The type of attribute `resources` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1114:21-24: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1137:13-17: The type of `when` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1137:43-55: The type of attribute `dependencies` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1137:56-61: The type of attribute `items` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1137:61-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1149:45-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1149:49-53: The type of attribute `spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1150:45-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1150:49-53: The type of attribute `spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/audit.py:1173:76-86: Implicit conversion of `tuple[str, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR lib/spack/spack/audit.py:1172:37-1174:18: The type of `problematic_edges` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1173:27-28: The type of `x` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1173:37-58: The type of attribute `edges_to_dependencies` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1173:78-86: The type of attribute `virtuals` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/audit.py:1175:20-37: Implicit conversion of `list[DependencySpec]` to `bool` is not allowed [implicit-bool]
+ ERROR lib/spack/spack/audit.py:1175:20-37: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
- ERROR lib/spack/spack/audit.py:1175:20-57: Implicit conversion of `bool | (list[DependencySpec] & Falsy)` to `bool` is not allowed [implicit-bool]
+ ERROR lib/spack/spack/audit.py:1175:20-57: Implicit conversion of `bool | (list[Unknown] & Falsy)` to `bool` is not allowed [implicit-bool]
- ERROR lib/spack/spack/audit.py:1175:46-57: Implicit conversion of `dict[Spec, list[Patch]] | None` to `bool` is not allowed [implicit-bool]
+ ERROR lib/spack/spack/audit.py:1175:46-57: Implicit conversion of `dict[Unknown, list[Patch]] | None` to `bool` is not allowed [implicit-bool]
+ ERROR lib/spack/spack/audit.py:1175:50-57: The type of attribute `patches` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1177:59-63: The type of attribute `spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1190:39-56: The type of `dependency_variants` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1190:43-47: The type of attribute `spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1190:48-56: The type of attribute `variants` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1191:21-25: The type of `name` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1191:27-34: The type of `variant` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1191:58-63: The type of attribute `items` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1193:39-64: The type of attribute `prevalidate_variant_value` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1194:49-56: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1194:58-66: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1194:62-66: The type of attribute `spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1248:17-18: The type of `_` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1248:43-62: The type of attribute `variant_definitions` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1260:17-21: The type of `when` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1260:42-61: The type of attribute `variant_definitions` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1278:13-14: The type of `_` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1278:40-52: The type of attribute `dependencies` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1278:53-58: The type of attribute `items` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1278:58-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1285:39-45: The type of attribute `append` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1285:45-55: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1285:46-54: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1285:50-54: The type of attribute `spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1288:13-14: The type of `s` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1291:68-74: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1291:70-74: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/audit.py:1297:52-91: Argument `ArchSpec | None` is not assignable to parameter `other` with type `ArchSpec` in function `spack.spec.ArchSpec.satisfies` [bad-argument-type]
- ERROR lib/spack/spack/audit.py:1297:68-77: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR lib/spack/spack/audit.py:1297:52-91: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1297:63-67: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1297:79-91: The type of attribute `architecture` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1301:34-44: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1301:36-44: The type of attribute `versions` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1304:27-1306:38: The type of `summary` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1306:36-37: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1311:29-30: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1381:27-52: The type of attribute `prevalidate_variant_value` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR lib/spack/spack/audit.py:1416:41-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/audit.py:1416:25-46: The type of `when_spec` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1416:36-40: The type of attribute `Spec` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR lib/spack/spack/audit.py:1417:24-38: Implicit conversion of `str` to `bool` is not allowed [implicit-bool]
+ ERROR lib/spack/spack/audit.py:1417:34-38: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1417:52-56: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR lib/spack/spack/audit.py:1432:51-71: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1432:59-71: The type of attribute `dependencies` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1438:13-17: The type of `when` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR lib/spack/spack/audit.py:1438:47-55: The type of attribute `variants` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1438:56-61: The type of attribute `items` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1438:61-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR lib/spack/spack/audit.py:1441:48-54: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
... (truncated 26476 lines) ...
attrs (https://github.com/python-attrs/attrs)
+ ERROR src/attr/_make.py:192:21-37: The type of `validator` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR src/attr/_make.py:3393:12-14: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/attr/_make.py:3396:13-3398:29: Argument `_CountingAttr | list[Unknown] | Unknown` is not assignable to parameter `iterable` with type `Iterable[Unknown]` in function `list.extend` [bad-argument-type]
- ERROR src/attr/_make.py:3396:23-34: The type of attribute `_validators` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR src/attr/_make.py:3396:23-34: The type of attribute `_validators` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR src/attr/_make.py:3401:12-38: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/_make.py:3396:23-34: Protected attribute `_validators` cannot be accessed outside of its defining class or a subclass [protected-access]
- ERROR src/attr/_make.py:3401:26-37: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
- ERROR src/attr/validators.py:128:33-37: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:128:12-38: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:198:32-39: Expected 0 positional arguments, got 2 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:198:12-52: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR src/attr/validators.py:231:16-60: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR src/attr/validators.py:233:12-41: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:231:35-59: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
- ERROR src/attr/validators.py:231:49-58: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
- ERROR src/attr/validators.py:233:31-40: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
- ERROR src/attr/validators.py:292:25-32: Expected 0 positional arguments, got 2 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:292:12-47: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR src/attr/validators.py:330:12-34: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR src/attr/validators.py:335:31-54: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:337:23-56: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:337:42-55: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:382:28-51: The type of `member_validator` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/attr/validators.py:384:30-55: The type of `iterable_validator` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR src/attr/validators.py:385:26-42: Expected 0 positional arguments, got 2 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:385:12-63: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR src/attr/validators.py:390:28-61: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:390:47-60: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:391:30-63: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:391:49-62: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:392:32-65: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:392:51-64: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:452:25-45: The type of `key_validator` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/attr/validators.py:454:27-49: The type of `value_validator` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR src/attr/validators.py:456:29-53: The type of `mapping_validator` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR src/attr/validators.py:458:25-38: Expected 0 positional arguments, got 3 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:458:12-75: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:491:29-32: Expected 0 positional arguments, got 3 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:491:12-51: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:506:29-32: Expected 0 positional arguments, got 3 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:506:12-52: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:521:29-32: Expected 0 positional arguments, got 3 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:521:12-52: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:536:29-32: Expected 0 positional arguments, got 3 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:536:12-51: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:551:29-32: Expected 0 positional arguments, got 3 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:551:12-52: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:580:32-38: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:580:12-39: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:609:32-38: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:609:12-39: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:647:33-37: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:647:12-38: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR src/attr/validators.py:660:9-663:10: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:661:13-53: The type of this argument is unknown [unknown-argument-type]
+ ERROR src/attr/validators.py:662:13-50: The type of this argument is unknown [unknown-argument-type]
- ERROR src/attr/validators.py:720:26-35: Expected 0 positional arguments, got 3 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:720:12-52: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
- ERROR src/attr/validators.py:762:12-14: Cannot infer type of empty container; it will be treated as containing `Any` [implicit-any-empty-container]
- ERROR src/attr/validators.py:764:21-73: Argument `_CountingAttr | list[Unknown] | Unknown` is not assignable to parameter `iterable` with type `Iterable[Unknown]` in function `list.extend` [bad-argument-type]
- ERROR src/attr/validators.py:764:23-33: The type of attribute `validators` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR src/attr/validators.py:764:23-33: The type of attribute `validators` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR src/attr/validators.py:766:25-36: Expected 0 positional arguments, got 1 in function `object.__init__` [bad-argument-count]
+ ERROR src/attr/validators.py:766:12-37: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
optuna (https://github.com/optuna/optuna)
+ ERROR optuna/storages/_rdb/alembic/versions/v1.2.0.a.py:21:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v1.2.0.a.py:30:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:53:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:102:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:145:17-34: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:168:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:171:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:174:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:180:21-38: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:23:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:25:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:27:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:29:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:31:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:36:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:38:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:40:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:42:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:44:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.b.py:72:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.b.py:78:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.b.py:84:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.b.py:93:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.b.py:95:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.b.py:97:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.c.py:80:17-34: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.c.py:91:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.c.py:188:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.d.py:90:17-34: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.d.py:99:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/alembic/versions/v3.0.0.d.py:185:13-30: The type of attribute `batch_alter_table` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR optuna/storages/_rdb/storage.py:440:42-56: The type of this argument is unknown [unknown-argument-type]
- ERROR optuna/storages/_rdb/storage.py:440:48-56: The type of attribute `study_id` is unknown because it comes from an error [unknown-from-error]
... (truncated 177 lines) ... |
Summary
Fixes #1180
Applied class decorators when computing class definition types, mirroring Python’s bottom‑up decorator application.
Test Plan
Updated the class decorator test to use cls: type, matching the issue repro.