Ecosystem report

Old: main (merge base) a9663e24 New: 27689/merge d88678b7
Lint Rule Removed Added Changed
Total 14 0 68
invalid-argument-type 6 0 26
invalid-assignment 0 0 21
unsupported-operator 0 0 8
invalid-return-type 0 0 5
unsound-yield 5 0 0
unresolved-attribute 0 0 4
not-subscriptable 0 0 2
type-assertion-failure 2 0 0
unsound-return-statement 0 0 2
unused-type-ignore-comment 1 0 0
Project Removed Added Changed
Total 14 0 68
optuna strict 0 0 38
bokeh non-strict 6 0 30
pytest non-strict 5 0 0
hydra-zen non-strict 3 0 0

bokeh non-strict (https://github.com/bokeh/bokeh)

src/bokeh/model/model.py

[error] unresolved-attribute - Object of type `Dict[Unknown, list[Unknown]]` has no attribute `get`
[error] unresolved-attribute - Object of type `Dict[str, list[Unknown]]` has no attribute `get`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `Dict[Unknown, list[Unknown]]`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `Dict[str, list[Unknown]]`
[error] unresolved-attribute - Object of type `Dict[Unknown, list[Unknown]]` has no attribute `items`
[error] unresolved-attribute - Object of type `Dict[str, list[Unknown]]` has no attribute `items`
[error] unsupported-operator - Operator `not in` is not supported between objects of type `str` and `Dict[Unknown, list[Unknown]]`
[error] unsupported-operator - Operator `not in` is not supported between objects of type `str` and `Dict[str, list[Unknown]]`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `Dict[Unknown, list[Unknown]]`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `Dict[str, list[Unknown]]`
[error] not-subscriptable - Cannot subscript object of type `Dict[Unknown, list[Unknown]]` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `Dict[str, list[Unknown]]` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `Dict[Unknown, list[Unknown]]` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `Dict[str, list[Unknown]]` with no `__getitem__` method

src/bokeh/models/annotations/dimensional.py

[error] unsupported-operator - Operator `in` is not supported between objects of type `str` and `Required[dict[Unknown, Any]]`
[error] unsupported-operator - Operator `in` is not supported between objects of type `str` and `Required[dict[str, Any]]`

src/bokeh/models/annotations/geometry.py

[error] invalid-argument-type - Argument to `NonNegative.__init__` is incorrect: Expected `TypeOrInst[Property[int]]`, found `<class 'Float'>`
[error] invalid-argument-type - Argument to `NonNegative.__init__` is incorrect: Expected `TypeOrInst[Property[int]]`, found `<class 'Float'>`

src/bokeh/models/callbacks.py

[error] invalid-assignment - Object of type `Required[Unknown]` is not assignable to `str`
[error] invalid-assignment - Object of type `Required[str]` is not assignable to `str`

src/bokeh/models/glyphs.py

[error] invalid-argument-type - Argument to `NonNegative.__init__` is incorrect: Expected `TypeOrInst[Property[int]]`, found `<class 'Float'>`
[error] invalid-argument-type - Argument to `NonNegative.__init__` is incorrect: Expected `TypeOrInst[Property[int]]`, found `<class 'Float'>`

src/bokeh/models/layouts.py

[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Nullable[Unknown]`
[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Nullable[int]`
[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Nullable[Unknown]`
[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Nullable[int]`
[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Nullable[Unknown]`
[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Nullable[int]`
[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Nullable[Unknown]`
[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Nullable[int]`
[error] invalid-return-type - Return type does not match returned value: expected `int | None`, found `Nullable[Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `int | None`, found `Nullable[int]`

src/bokeh/models/plots.py

[error] unresolved-attribute - Object of type `Dict[Unknown, Range]` has no attribute `values`
[error] unresolved-attribute - Object of type `Dict[str, Range]` has no attribute `values`
[error] unresolved-attribute - Object of type `Dict[Unknown, Range]` has no attribute `values`
[error] unresolved-attribute - Object of type `Dict[str, Range]` has no attribute `values`

src/bokeh/models/ranges.py

[error] invalid-argument-type - Argument to `Readonly.__init__` is incorrect: Expected `TypeOrInst[Property[int]]`, found `<class 'Float'>`
[error] invalid-argument-type - Argument to `Readonly.__init__` is incorrect: Expected `TypeOrInst[Property[int]]`, found `<class 'Float'>`

src/bokeh/models/renderers/contour_renderer.py

[error] invalid-argument-type - Argument to `ContourColorBar.__init__` is incorrect: Expected `Sequence[float]`, found `Seq[Unknown, list[Unknown]]`
[error] invalid-argument-type - Argument to `ContourColorBar.__init__` is incorrect: Expected `Sequence[float]`, found `Seq[float, list[Unknown]]`
[error] invalid-argument-type - Argument to `FixedTicker.__init__` is incorrect: Expected `Sequence[float]`, found `Seq[Unknown, list[Unknown]]`
[error] invalid-argument-type - Argument to `FixedTicker.__init__` is incorrect: Expected `Sequence[float]`, found `Seq[float, list[Unknown]]`

src/bokeh/models/tools.py

[error] invalid-argument-type - Argument to `Dict.__init__` is incorrect: Expected `Init[dict[Unknown, Any]]`, found `() -> dict[Unknown, Unknown]`
[error] invalid-argument-type - Argument to `Dict.__init__` is incorrect: Expected `Init[dict[str, Any]]`, found `() -> dict[Unknown, Unknown]`

src/bokeh/models/widgets/sliders.py

[error] unsupported-operator - Operator `/` is not supported between objects of type `Required[Unknown] & Number` and `Literal[1000]`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Required[str | date] & Number` and `Literal[1000]`
[error] invalid-return-type - Return type does not match returned value: expected `datetime | None`, found `Required[Unknown] & ~Number`
[error] invalid-return-type - Return type does not match returned value: expected `datetime | None`, found `Required[str | date] & ~Number`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Required[Unknown] & Number` and `Literal[1000]`
[error] unsupported-operator - Operator `/` is not supported between objects of type `Required[str | date] & Number` and `Literal[1000]`
[error] invalid-return-type - Return type does not match returned value: expected `date | None`, found `Required[Unknown] & ~Number`
[error] invalid-return-type - Return type does not match returned value: expected `date | None`, found `Required[str | date] & ~Number`

src/bokeh/server/server.py

[error] invalid-assignment - Object of type `Nullable[Unknown]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[str]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[Unknown]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[str]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[Unknown]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[str]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[list[Unknown]]` is not assignable to `list[str] | None`
[error] invalid-assignment - Object of type `Nullable[list[str]]` is not assignable to `list[str] | None`
[error] invalid-assignment - Object of type `Nullable[Unknown]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[str]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[Unknown]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[str]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[Unknown]` is not assignable to `str | None`
[error] invalid-assignment - Object of type `Nullable[str]` is not assignable to `str | None`

hydra-zen non-strict (https://github.com/mit-ll-responsible-ai/hydra-zen)

tests/annotations/declarations.py

[error] type-assertion-failure - Type `PBuilds[Unknown]` does not match asserted type `PBuilds[int]`
[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive
[error] type-assertion-failure - Type `FullBuilds[Unknown]` does not match asserted type `FullBuilds[int]`

optuna strict (https://github.com/optuna/optuna)

optuna/storages/_rdb/models.py

[error] invalid-assignment - Invalid assignment to data descriptor attribute `_datetime_start_utc` on type `Self@datetime_start`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `_datetime_start_utc` on type `Self@datetime_start`: Argument type `MappedColumn[Any] | Column[datetime]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `_datetime_start_utc` on type `Self@datetime_start`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `_datetime_start_utc` on type `Self@datetime_start`: Argument type `MappedColumn[Any] | Column[datetime]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `_datetime_complete_utc` on type `Self@datetime_complete`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `_datetime_complete_utc` on type `Self@datetime_complete`: Argument type `MappedColumn[Any] | Column[datetime]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `_datetime_complete_utc` on type `Self@datetime_complete`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `_datetime_complete_utc` on type `Self@datetime_complete`: Argument type `MappedColumn[Any] | Column[datetime]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `int`
[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `int`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `int`
[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `int`

optuna/storages/_rdb/storage.py

[error] invalid-return-type - Return type does not match returned value: expected `int`, found `Any | Column[Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `int`, found `Any | Column[int]`
[error] invalid-assignment - Object of type `Any | Column[Unknown]` is not assignable to attribute `number` on type `FrozenTrial & ~AlwaysFalsy`
[error] invalid-assignment - Object of type `Any | Column[int]` is not assignable to attribute `number` on type `FrozenTrial & ~AlwaysFalsy`
[error] invalid-assignment - Object of type `Any | Column[Unknown]` is not assignable to attribute `_trial_id` on type `FrozenTrial & ~AlwaysFalsy`
[error] invalid-assignment - Object of type `Any | Column[int]` is not assignable to attribute `_trial_id` on type `FrozenTrial & ~AlwaysFalsy`
[error] invalid-argument-type - Argument to `FrozenTrial.__init__` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to `FrozenTrial.__init__` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to `FrozenTrial.__init__` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to `FrozenTrial.__init__` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `RDBStorage._set_trial_param_without_commit` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `RDBStorage._set_trial_param_without_commit` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `RDBStorage._set_trial_attr_without_commit` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `RDBStorage._set_trial_attr_without_commit` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `RDBStorage._set_trial_attr_without_commit` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `RDBStorage._set_trial_attr_without_commit` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `RDBStorage._set_trial_intermediate_value_without_commit` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `RDBStorage._set_trial_intermediate_value_without_commit` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `number` on type `TrialModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `number` on type `TrialModel`: Argument type `MappedColumn[Any] | Column[int]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-argument-type - Argument to bound method `BaseStorage.check_trial_is_updatable` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `BaseStorage.check_trial_is_updatable` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to `FrozenTrial.__init__` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to `FrozenTrial.__init__` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to `FrozenTrial.__init__` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to `FrozenTrial.__init__` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `heartbeat` on type `TrialHeartbeatModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `heartbeat` on type `TrialHeartbeatModel`: Argument type `MappedColumn[Any] | Column[datetime]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-return-type - Return type does not match returned value: expected `list[int]`, found `list[Any | Column[Unknown] | int]`
[error] invalid-return-type - Return type does not match returned value: expected `list[int]`, found `list[Any | Column[int] | int]`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `schema_version` on type `VersionInfoModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `schema_version` on type `VersionInfoModel`: Argument type `MappedColumn[Any] | Column[int]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`

tests/storages_tests/rdb_tests/test_models.py

[error] invalid-argument-type - Argument to bound method `StudyDirectionModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `StudyDirectionModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `StudyDirectionModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `StudyDirectionModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `StudyDirectionModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `StudyDirectionModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `StudySystemAttributeModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `StudySystemAttributeModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `StudySystemAttributeModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `StudySystemAttributeModel.where_study_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialIntermediateValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialIntermediateValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialIntermediateValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialIntermediateValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialIntermediateValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialIntermediateValueModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialHeartbeatModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialHeartbeatModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialHeartbeatModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialHeartbeatModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`
[error] invalid-argument-type - Argument to bound method `TrialHeartbeatModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to bound method `TrialHeartbeatModel.where_trial_id` is incorrect: Expected `int`, found `Any | Column[int]`

tests/storages_tests/rdb_tests/test_storage.py

[error] invalid-assignment - Invalid assignment to data descriptor attribute `schema_version` on type `VersionInfoModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `schema_version` on type `VersionInfoModel`: Argument type `MappedColumn[Any] | Column[int]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `number` on type `TrialModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `number` on type `TrialModel`: Argument type `MappedColumn[Any] | Column[int]` does not satisfy upper bound `Mapped[_T_co@Mapped]` of type variable `Self`

pytest non-strict (https://github.com/pytest-dev/pytest)

src/_pytest/capture.py

[warning] unsound-yield - Unsound `yield`: `CaptureFixture[Unknown]` is not a subtype of `CaptureFixture[str]`
[warning] unsound-yield - Unsound `yield`: `CaptureFixture[Unknown]` is not a subtype of `CaptureFixture[str]`
[warning] unsound-yield - Unsound `yield`: `CaptureFixture[Unknown]` is not a subtype of `CaptureFixture[bytes]`
[warning] unsound-yield - Unsound `yield`: `CaptureFixture[Unknown]` is not a subtype of `CaptureFixture[str]`
[warning] unsound-yield - Unsound `yield`: `CaptureFixture[Unknown]` is not a subtype of `CaptureFixture[bytes]`