-
Notifications
You must be signed in to change notification settings - Fork 243
fix: Attribute assignment of field with __get__ but no __set__ fails #1947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Diff from mypy_primer, showing the effect of this PR on open source code: mkdocs (https://github.com/mkdocs/mkdocs)
- ERROR mkdocs/config/config_options.py:201:28-39: Argument `BaseConfigOption[T]` is not assignable to parameter `value` with type `T` in function `mkdocs.config.base.BaseConfigOption.__set__` [bad-argument-type]
- ERROR mkdocs/config/config_options.py:256:28-39: Argument `BaseConfigOption[T]` is not assignable to parameter `value` with type `T` in function `mkdocs.config.base.BaseConfigOption.__set__` [bad-argument-type]
- ERROR mkdocs/config/config_options.py:543:23-36: Argument `BaseConfigOption[T]` is not assignable to parameter `value` with type `T` in function `mkdocs.config.base.BaseConfigOption.__set__` [bad-argument-type]
- ERROR mkdocs/config/config_options.py:944:28-57: Argument `SubConfig[ExtraScriptValue]` is not assignable to parameter `value` with type `ExtraScriptValue` in function `mkdocs.config.base.BaseConfigOption.__set__` [bad-argument-type]
- ERROR mkdocs/config/config_options.py:950:24-90: Returned type `object` is not assignable to declared return type `ExtraScriptValue | str` [bad-return]
- ERROR mkdocs/config/config_options.py:952:16-54: Returned type `object` is not assignable to declared return type `ExtraScriptValue | str` [bad-return]
- ERROR mkdocs/config/config_options.py:1177:29-59: Argument `ListOfItems[str]` is not assignable to parameter `value` with type `list[str]` in function `mkdocs.config.base.BaseConfigOption.__set__` [bad-argument-type]
prefect (https://github.com/PrefectHQ/prefect)
+ ERROR src/prefect/server/api/concurrency_limits.py:72:27-62: `int` is not assignable to attribute `limit` with type `Mapped[int]` [bad-assignment]
+ ERROR src/prefect/server/api/concurrency_limits.py:94:27-38: Argument `Mapped[int]` is not assignable to parameter `concurrency_limit` with type `Decimal | bool | bytes | float | int | str` in function `prefect.server.schemas.core.ConcurrencyLimit.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits.py:121:19-45: Object of class `Mapped` has no attribute `removeprefix` [missing-attribute]
+ ERROR src/prefect/server/api/concurrency_limits.py:129:35-49: Argument `Mapped[int]` is not assignable to parameter `concurrency_limit` with type `Decimal | bool | bytes | float | int | str` in function `prefect.server.schemas.core.ConcurrencyLimit.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits.py:172:31-42: Argument `Mapped[int]` is not assignable to parameter `concurrency_limit` with type `Decimal | bool | bytes | float | int | str` in function `prefect.server.schemas.core.ConcurrencyLimit.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits.py:218:15-41: Object of class `Mapped` has no attribute `removeprefix` [missing-attribute]
+ ERROR src/prefect/server/api/concurrency_limits.py:226:35-49: Argument `Mapped[int]` is not assignable to parameter `concurrency_limit` with type `Decimal | bool | bytes | float | int | str` in function `prefect.server.schemas.core.ConcurrencyLimit.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits.py:473:38-52: No matching overload found for function `dict.get` called with arguments: (str) [no-matching-overload]
+ ERROR src/prefect/server/api/concurrency_limits.py:474:37-42: No matching overload found for function `dict.get` called with arguments: (str) [no-matching-overload]
+ ERROR src/prefect/server/api/concurrency_limits.py:495:38-52: No matching overload found for function `dict.get` called with arguments: (str) [no-matching-overload]
+ ERROR src/prefect/server/api/concurrency_limits.py:496:37-42: No matching overload found for function `dict.get` called with arguments: (str) [no-matching-overload]
+ ERROR src/prefect/server/api/concurrency_limits.py:541:36-48: Cannot index into `dict[Mapped[str], ConcurrencyLimitV2]` [bad-index]
+ ERROR src/prefect/server/api/concurrency_limits.py:544:54-65: Argument `Mapped[int]` is not assignable to parameter `limit` with type `Decimal | bool | bytes | float | int | str` in function `prefect.server.api.concurrency_limits_v2.MinimalConcurrencyLimitResponse.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits.py:626:43-53: Argument `Mapped[str]` is not assignable to parameter `name` with type `bytearray | bytes | str` in function `prefect.server.api.concurrency_limits_v2.MinimalConcurrencyLimitResponse.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits.py:626:61-72: Argument `Mapped[int]` is not assignable to parameter `limit` with type `Decimal | bool | bytes | float | int | str` in function `prefect.server.api.concurrency_limits_v2.MinimalConcurrencyLimitResponse.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits.py:648:44-50: Argument `Mapped[str]` is not assignable to parameter `name` with type `bytearray | bytes | str` in function `prefect.server.api.concurrency_limits_v2.MinimalConcurrencyLimitResponse.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits.py:648:58-78: Argument `Mapped[int]` is not assignable to parameter `limit` with type `Decimal | bool | bytes | float | int | str` in function `prefect.server.api.concurrency_limits_v2.MinimalConcurrencyLimitResponse.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/concurrency_limits_v2.py:397:54-65: Argument `Mapped[int]` is not assignable to parameter `limit` with type `Decimal | bool | bytes | float | int | str` in function `MinimalConcurrencyLimitResponse.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/deployments.py:796:32-68: Argument `Mapped[str]` is not assignable to parameter `work_pool_name` with type `str` in function `prefect.server.api.workers.WorkerLookups._get_work_queue_id_from_name` [bad-argument-type]
+ ERROR src/prefect/server/api/deployments.py:815:32-50: Argument `Mapped[str | None]` is not assignable to parameter `deployment_version` with type `bytearray | bytes | str | None` in function `prefect.server.schemas.core.FlowRun.__init__` [bad-argument-type]
- ERROR src/prefect/server/api/ui/flow_runs.py:73:21-28: Argument `list[InstrumentedAttribute[StateType | None] | InstrumentedAttribute[datetime | None] | InstrumentedAttribute[UUID] | InstrumentedAttribute[timedelta]]` is not assignable to parameter `columns` with type `list[str] | None` in function `prefect.server.models.flow_runs.read_flow_runs` [bad-argument-type]
+ ERROR src/prefect/server/api/ui/flow_runs.py:73:21-28: Argument `list[InstrumentedAttribute[StateType | None] | InstrumentedAttribute[UUID] | InstrumentedAttribute[timedelta] | Mapped[datetime | None]]` is not assignable to parameter `columns` with type `list[str] | None` in function `prefect.server.models.flow_runs.read_flow_runs` [bad-argument-type]
- ERROR src/prefect/server/api/ui/flow_runs.py:88:23-60: Argument `datetime | None` is not assignable to parameter `timestamp` with type `Decimal | bytes | date | datetime | float | int | str` in function `SimpleFlowRun.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/ui/flow_runs.py:88:23-60: Argument `Mapped[datetime | None]` is not assignable to parameter `timestamp` with type `Decimal | bytes | date | datetime | float | int | str` in function `SimpleFlowRun.__init__` [bad-argument-type]
+ ERROR src/prefect/server/api/validation.py:250:13-27: Argument `Mapped[str]` is not assignable to parameter `work_pool_name` with type `str` in function `_validate_work_pool_job_variables` [bad-argument-type]
+ ERROR src/prefect/server/api/validation.py:378:9-23: Argument `Mapped[str]` is not assignable to parameter `work_pool_name` with type `str` in function `_validate_work_pool_job_variables` [bad-argument-type]
+ ERROR src/prefect/server/database/orm_models.py:404:20-77: Returned type `ColumnElement[Any]` is not assignable to declared return type `timedelta` [bad-return]
+ ERROR src/prefect/server/database/orm_models.py:442:20-62: Returned type `ColumnElement[Any]` is not assignable to declared return type `timedelta` [bad-return]
+ ERROR src/prefect/server/database/query_components.py:522:26-39: Argument `Mapped[str | None]` is not assignable to parameter `type` with type `bytearray | bytes | str | None` in function `prefect.server.schemas.graph.GraphArtifact.__init__` [bad-argument-type]
+ ERROR src/prefect/server/events/triggers.py:168:47-59: Argument `Mapped[int]` is not assignable to parameter `event_count` with type `int` in function `prefect.server.events.schemas.automations.EventTrigger.meets_threshold` [bad-argument-type]
+ ERROR src/prefect/server/events/triggers.py:275:69-86: No matching overload found for function `max` called with arguments: (Mapped[datetime], datetime) [no-matching-overload]
+ ERROR src/prefect/server/events/triggers.py:900:9-26: Argument `Mapped[UUID]` is not assignable to parameter `trigger_id` with type `UUID` in function `read_bucket_by_trigger_id` [bad-argument-type]
+ ERROR src/prefect/server/events/triggers.py:1228:25-40: Argument `Mapped[datetime]` is not assignable to parameter `v` with type `datetime` in function `prefect.types._datetime.create_datetime_instance` [bad-argument-type]
+ ERROR src/prefect/server/models/deployments.py:349:53-58: `int` is not assignable to attribute `limit` with type `Mapped[int]` [bad-assignment]
+ ERROR src/prefect/server/models/events.py:504:9-506:18: Returned type `Mapped[UUID | None] | None` is not assignable to declared return type `UUID | None` [bad-return]
+ ERROR src/prefect/server/models/flow_runs.py:421:37-65: Argument `Mapped[datetime | None]` is not assignable to parameter `expected_start_time` with type `Decimal | bytes | date | datetime | float | int | str | None` in function `DependencyResult.__init__` [bad-argument-type]
+ ERROR src/prefect/server/models/flow_runs.py:423:28-47: Argument `Mapped[datetime | None]` is not assignable to parameter `start_time` with type `Decimal | bytes | date | datetime | float | int | str | None` in function `DependencyResult.__init__` [bad-argument-type]
+ ERROR src/prefect/server/models/flow_runs.py:424:26-43: Argument `Mapped[datetime | None]` is not assignable to parameter `end_time` with type `Decimal | bytes | date | datetime | float | int | str | None` in function `DependencyResult.__init__` [bad-argument-type]
+ ERROR src/prefect/server/models/work_queues.py:281:31-61: `Mapped[datetime | None]` is not assignable to variable `last_polled` with type `datetime | None` [bad-assignment]
+ ERROR src/prefect/server/models/work_queues.py:453:37-84: No matching overload found for function `max` called with arguments: (Literal[0], ColumnElement[Any]) [no-matching-overload]
+ ERROR src/prefect/server/models/work_queues.py:555:21-43: Argument `Mapped[datetime | None]` is not assignable to parameter `last_polled` with type `Decimal | bytes | date | datetime | float | int | str | None` in function `prefect.server.schemas.core.WorkQueueStatusDetail.__init__` [bad-argument-type]
+ ERROR src/prefect/server/models/workers.py:482:26-50: `int` is not assignable to attribute `priority` with type `Mapped[int]` [bad-assignment]
+ ERROR src/prefect/server/models/workers.py:494:5-499:43: `Mapped[int] | int` is not assignable to `int` (caused by inconsistent types when breaking cycles) [bad-assignment]
+ ERROR src/prefect/server/models/workers.py:497:30-43: `int` is not assignable to attribute `priority` with type `Mapped[int]` [bad-assignment]
+ ERROR src/prefect/server/models/workers.py:658:38-49: Argument `Mapped[datetime | None] | Any` is not assignable to parameter `last_polled` with type `datetime | None` in function `prefect.server.models.work_queues.is_last_polled_recent` [bad-argument-type]
+ ERROR src/prefect/server/orchestration/core_policy.py:302:17-40: Object of class `Mapped` has no attribute `removeprefix` [missing-attribute]
+ ERROR src/prefect/server/orchestration/core_policy.py:355:86-109: Object of class `Mapped` has no attribute `removeprefix` [missing-attribute]
+ ERROR src/prefect/server/orchestration/core_policy.py:382:53-70: No matching overload found for function `dict.get` called with arguments: (str, None) [no-matching-overload]
+ ERROR src/prefect/server/orchestration/core_policy.py:397:53-70: No matching overload found for function `dict.get` called with arguments: (str, None) [no-matching-overload]
+ ERROR src/prefect/server/orchestration/core_policy.py:412:49-52: Argument `Mapped[str]` is not assignable to parameter `object` with type `str` in function `list.append` [bad-argument-type]
+ ERROR src/prefect/server/schemas/core.py:881:29-63: Argument `Mapped[str | None]` is not assignable to parameter `block_type_name` with type `bytearray | bytes | str | None` in function `BlockDocument.__init__` [bad-argument-type]
+ ERROR src/prefect/utilities/schema_tools/hydration.py:44:33-46:14: Argument `dict[Mapped[str], Decimal | Iterable[Any] | Mapping[str, Any] | bool | bytearray | bytes | float | int | str | None]` is not assignable to parameter `workspace_variables` with type `Mapping[str, Decimal | Iterable[Any] | Mapping[str, Any] | bool | bytearray | bytes | float | int | str | None]` in function `HydrationContext.__init__` [bad-argument-type]
django-stubs (https://github.com/typeddjango/django-stubs)
+ ERROR django-stubs/contrib/contenttypes/fields.pyi:63:5-10: Class member `GenericRel.field` overrides parent class `ForeignObjectRel` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:40:5-17: Class member `Azimuth.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:45:5-17: Class member `AsGeoJSON.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:53:5-17: Class member `AsGML.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:58:5-17: Class member `AsKML.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:62:5-17: Class member `AsSVG.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:66:5-17: Class member `AsWKB.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:70:5-17: Class member `AsWKT.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:116:5-17: Class member `GeoHash.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:121:5-17: Class member `GeometryDistance.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:133:5-17: Class member `IsEmpty.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:137:5-17: Class member `IsValid.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:149:5-17: Class member `LineLocatePoint.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:156:5-17: Class member `MemSize.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:160:5-17: Class member `NumGeometries.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/gis/db/models/functions.pyi:164:5-17: Class member `NumPoints.output_field` overrides parent class `GeoFunc` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/aggregates/general.pyi:30:5-17: Class member `BoolAnd.output_field` overrides parent class `Aggregate` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/aggregates/general.pyi:33:5-17: Class member `BoolOr.output_field` overrides parent class `Aggregate` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/aggregates/general.pyi:36:5-17: Class member `JSONBAgg.output_field` overrides parent class `Aggregate` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/aggregates/general.pyi:48:5-17: Class member `StringAgg.output_field` overrides parent class `Aggregate` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/aggregates/statistics.pyi:6:5-17: Class member `StatAggregate.output_field` overrides parent class `Aggregate` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/fields/hstore.pyi:13:5-17: Class member `KeyTransform.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/fields/hstore.pyi:23:5-17: Class member `KeysTransform.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/fields/hstore.pyi:26:5-17: Class member `ValuesTransform.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/fields/ranges.pyi:79:5-17: Class member `IsEmpty.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/fields/ranges.pyi:82:5-17: Class member `LowerInclusive.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/fields/ranges.pyi:85:5-17: Class member `LowerInfinite.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/fields/ranges.pyi:88:5-17: Class member `UpperInclusive.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/fields/ranges.pyi:91:5-17: Class member `UpperInfinite.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/functions.pyi:6:5-17: Class member `RandomUUID.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/functions.pyi:9:5-17: Class member `TransactionNow.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/search.pyi:32:5-17: Class member `SearchVector.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/search.pyi:63:5-17: Class member `SearchQuery.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/search.pyi:94:5-17: Class member `SearchRank.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/search.pyi:107:5-17: Class member `SearchHeadline.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/search.pyi:132:5-17: Class member `TrigramBase.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/contrib/postgres/search.pyi:136:5-17: Class member `TrigramWordBase.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/aggregates.pyi:28:5-17: Class member `Count.output_field` overrides parent class `Aggregate` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/expressions.pyi:135:5-17: Class member `TemporalSubtraction.output_field` overrides parent class `CombinedExpression` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/expressions.pyi:273:5-17: Class member `Exists.output_field` overrides parent class `Subquery` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/fields/files.pyi:85:9-16: Class member `FileField.__get__` overrides parent class `Field` in an inconsistent manner [bad-override]
+ ERROR django-stubs/db/models/fields/files.pyi:42:5-10: Class member `FileDescriptor.field` overrides parent class `DeferredAttribute` in an inconsistent manner [bad-override]
+ ERROR django-stubs/db/models/fields/files.pyi:96:5-10: Class member `ImageFileDescriptor.field` overrides parent class `FileDescriptor` in an inconsistent manner [bad-override]
+ ERROR django-stubs/db/models/fields/files.pyi:100:5-10: Class member `ImageFieldFile.field` overrides parent class `FieldFile` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/fields/json.pyi:68:5-17: Class member `KeyTextTransform.output_field` overrides parent class `KeyTransform` in an inconsistent manner [bad-override]
+ ERROR django-stubs/db/models/fields/related_descriptors.pyi:22:5-10: Class member `ForeignKeyDeferredAttribute.field` overrides parent class `DeferredAttribute` in an inconsistent manner [bad-override]
+ ERROR django-stubs/db/models/fields/reverse_related.pyi:95:5-10: Class member `ManyToOneRel.field` overrides parent class `ForeignObjectRel` in an inconsistent manner [bad-override]
+ ERROR django-stubs/db/models/fields/reverse_related.pyi:111:5-10: Class member `OneToOneRel.field` overrides parent class `ManyToOneRel` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/datetime.pyi:17:5-17: Class member `Extract.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/datetime.pyi:35:5-17: Class member `Now.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/datetime.pyi:69:5-17: Class member `TruncDate.output_field` overrides parent class `TruncBase` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/datetime.pyi:72:5-17: Class member `TruncTime.output_field` overrides parent class `TruncBase` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/json.pyi:10:5-17: Class member `JSONArray.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/json.pyi:21:5-17: Class member `JSONObject.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/text.pyi:37:5-17: Class member `Left.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/text.pyi:44:5-17: Class member `Length.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/text.pyi:50:5-17: Class member `LPad.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/text.pyi:59:5-17: Class member `Ord.output_field` overrides parent class `Transform` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/text.pyi:64:5-17: Class member `Repeat.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/text.pyi:89:5-17: Class member `StrIndex.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/text.pyi:95:5-17: Class member `Substr.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/window.pyi:7:5-17: Class member `CumeDist.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/window.pyi:10:5-17: Class member `DenseRank.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/window.pyi:26:5-17: Class member `Ntile.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/window.pyi:29:5-17: Class member `PercentRank.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/window.pyi:32:5-17: Class member `Rank.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
- ERROR django-stubs/db/models/functions/window.pyi:35:5-17: Class member `RowNumber.output_field` overrides parent class `Func` in an inconsistent manner [bad-override]
+ ERROR tests/assert_type/db/models/fields/test_related_descriptors.py:16:12-66: assert_type(ReverseManyToOneDescriptor[MyModel], RelatedManager[MyModel]) failed [assert-type]
freqtrade (https://github.com/freqtrade/freqtrade)
+ ERROR freqtrade/persistence/key_value_store.py:74:33-38: `datetime` is not assignable to attribute `datetime_value` with type `Mapped[datetime | None]` [bad-assignment]
+ ERROR freqtrade/persistence/key_value_store.py:77:30-35: `float | int` is not assignable to attribute `float_value` with type `Mapped[float | None]` [bad-assignment]
+ ERROR freqtrade/persistence/key_value_store.py:117:20-45: Object of class `Mapped` has no attribute `replace` [missing-attribute]
+ ERROR freqtrade/persistence/key_value_store.py:119:20-34: Returned type `Mapped[float | None]` is not assignable to declared return type `datetime | float | int | str | None` [bad-return]
+ ERROR freqtrade/persistence/key_value_store.py:121:20-32: Returned type `Mapped[int | None]` is not assignable to declared return type `datetime | float | int | str | None` [bad-return]
+ ERROR freqtrade/persistence/key_value_store.py:159:16-41: Object of class `Mapped` has no attribute `replace` [missing-attribute]
+ ERROR freqtrade/persistence/key_value_store.py:177:16-30: Returned type `Mapped[float | None]` is not assignable to declared return type `float | None` [bad-return]
+ ERROR freqtrade/persistence/key_value_store.py:194:16-28: Returned type `Mapped[int | None]` is not assignable to declared return type `int | None` [bad-return]
zulip (https://github.com/zulip/zulip)
+ ERROR zerver/tests/test_openapi.py:470:25-54: Object of class `LocaleRegexDescriptor` has no attribute `pattern`
+ Object of class `LocaleRegexRouteDescriptor` has no attribute `pattern` [missing-attribute]
scipy (https://github.com/scipy/scipy)
+ ERROR scipy/sparse/_sputils.py:45:25-37: No matching overload found for function `dict.get` called with arguments: (int) [no-matching-overload]
+ ERROR scipy/sparse/_sputils.py:53:26-36: Cannot set item in `dict[tuple[Unknown, ...], Unknown]` [unsupported-operation]
- ERROR scipy/stats/_distn_infrastructure.py:3382:9-28: Attribute `generic_moment` of class `rv_discrete` is a read-only descriptor with no `__set__` and cannot be set [read-only]
- ERROR scipy/stats/_distn_infrastructure.py:3387:9-21: Attribute `_ppfvec` of class `rv_discrete` is a read-only descriptor with no `__set__` and cannot be set [read-only]
- ERROR scipy/stats/_distn_infrastructure.py:4193:9-23: Class member `rv_sample.generic_moment` overrides parent class `rv_discrete` in an inconsistent manner [bad-override]
anyio (https://github.com/agronholm/anyio)
- ERROR src/anyio/functools.py:78:9-23: Attribute `__wrapper` of class `_LRUMethodWrapper` is a read-only descriptor with no `__set__` and cannot be set [read-only]
optuna (https://github.com/optuna/optuna)
- ERROR optuna/_gp/batched_lbfgsb.py:54:26-61: Object of class `NoneType` has no attribute `switch` [missing-attribute]
+ ERROR optuna/_gp/batched_lbfgsb.py:54:26-61: Object of class `_ParentDescriptor` has no attribute `switch` [missing-attribute]
- ERROR optuna/_gp/batched_lbfgsb.py:73:9-44: Object of class `NoneType` has no attribute `switch` [missing-attribute]
+ ERROR optuna/_gp/batched_lbfgsb.py:73:9-44: Object of class `_ParentDescriptor` has no attribute `switch` [missing-attribute]
streamlit (https://github.com/streamlit/streamlit)
- ERROR lib/streamlit/runtime/caching/cache_utils.py:233:9-26: Attribute `_cached_func` of class `BoundCachedFunc` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+ ERROR lib/streamlit/runtime/caching/cache_utils.py:237:34-48: Expected 0 positional arguments, got 1 in function `CachedFunc.__call__` [bad-argument-count]
rotki (https://github.com/rotki/rotki)
- ERROR rotkehlchen/premium/sync.py:216:13-27: Type `None` is not iterable [not-iterable]
+ ERROR rotkehlchen/premium/sync.py:215:24-57: Object of class `_DefaultReturnProperty` has no attribute `spawn` [missing-attribute]
+ ERROR rotkehlchen/server.py:65:9-31: Object of class `_DefaultReturnProperty` has no attribute `maxsize` [missing-attribute]
hydpy (https://github.com/hydpy-dev/hydpy)
+ ERROR hydpy/auxs/anntools.py:577:5-15: Class member `ANN.nmb_inputs` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/anntools.py:607:5-16: Class member `ANN.nmb_outputs` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/anntools.py:1067:5-11: Class member `ANN.inputs` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/anntools.py:1089:5-12: Class member `ANN.outputs` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/anntools.py:1111:5-23: Class member `ANN.output_derivatives` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/interptools.py:153:14-21: `+` is not supported between `BaseProperty[Never, int]` and `BaseProperty[Never, int]` [unsupported-operation]
+ ERROR hydpy/auxs/interptools.py:154:48-55: `*` is not supported between `BaseProperty[Never, int]` and `BaseProperty[Never, int]` [unsupported-operation]
+ ERROR hydpy/auxs/interptools.py:156:62-68: `+` is not supported between `BaseProperty[Never, int]` and `Literal[1]` [unsupported-operation]
+ ERROR hydpy/auxs/interptools.py:157:62-68: `+` is not supported between `BaseProperty[Never, int]` and `Literal[1]` [unsupported-operation]
+ ERROR hydpy/auxs/interptools.py:170:17-32: Cannot set item in `BaseProperty[Never, ndarray[tuple[Any, ...], dtype[float64]]]` [unsupported-operation]
+ ERROR hydpy/auxs/interptools.py:172:36-48: Argument `BaseProperty[Never, ndarray[tuple[Any, ...], dtype[float64]]]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `enumerate.__new__` [bad-argument-type]
+ ERROR hydpy/auxs/interptools.py:173:27-34: `+` is not supported between `BaseProperty[Never, int]` and `int` [unsupported-operation]
+ ERROR hydpy/auxs/interptools.py:174:28-32: No matching overload found for function `range.__new__` called with arguments: (type[range], BaseProperty[Never, int]) [no-matching-overload]
+ ERROR hydpy/auxs/interptools.py:176:32-36: No matching overload found for function `range.__new__` called with arguments: (type[range], BaseProperty[Never, int]) [no-matching-overload]
+ ERROR hydpy/auxs/interptools.py:177:36-43: `*` is not supported between `BaseProperty[Never, int]` and `int` [unsupported-operation]
+ ERROR hydpy/auxs/interptools.py:177:54-81: Cannot index into `BaseProperty[Never, ndarray[tuple[Any, ...], dtype[float64]]]` [bad-index]
+ ERROR hydpy/auxs/interptools.py:209:13-35: Cannot set item in `BaseProperty[Never, ndarray[tuple[Any, ...], dtype[float64]]]` [unsupported-operation]
+ ERROR hydpy/auxs/interptools.py:211:24-48: Cannot index into `BaseProperty[Never, ndarray[tuple[Any, ...], dtype[float64]]]` [bad-index]
+ ERROR hydpy/auxs/interptools.py:361:16-41: Returned type `BaseProperty[Never, int]` is not assignable to declared return type `int` [bad-return]
+ ERROR hydpy/auxs/interptools.py:366:16-42: Returned type `BaseProperty[Never, int]` is not assignable to declared return type `int` [bad-return]
+ ERROR hydpy/auxs/interptools.py:371:16-37: Returned type `BaseProperty[Never, ndarray[tuple[Any, ...], dtype[float64]]]` is not assignable to declared return type `ndarray[tuple[Any, ...], dtype[float64]]` [bad-return]
+ ERROR hydpy/auxs/interptools.py:376:16-38: Returned type `BaseProperty[Never, ndarray[tuple[Any, ...], dtype[float64]]]` is not assignable to declared return type `ndarray[tuple[Any, ...], dtype[float64]]` [bad-return]
+ ERROR hydpy/auxs/interptools.py:381:16-49: Returned type `BaseProperty[Never, ndarray[tuple[Any, ...], dtype[float64]]]` is not assignable to declared return type `ndarray[tuple[Any, ...], dtype[float64]]` [bad-return]
+ ERROR hydpy/auxs/ppolytools.py:451:5-15: Class member `PPoly.nmb_inputs` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/ppolytools.py:465:5-11: Class member `PPoly.inputs` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/ppolytools.py:479:5-16: Class member `PPoly.nmb_outputs` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/ppolytools.py:493:5-12: Class member `PPoly.outputs` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/auxs/ppolytools.py:507:5-23: Class member `PPoly.output_derivatives` overrides parent class `InterpAlgorithm` in an inconsistent manner [bad-override]
+ ERROR hydpy/core/parametertools.py:2228:5-9: Class member `ZipParameter.mask` overrides parent class `_MixinModifiableParameter` in an inconsistent manner [bad-override]
+ ERROR hydpy/core/parametertools.py:2228:5-9: Class member `ZipParameter.mask` overrides parent class `Parameter` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_detention.py:458:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_detention.py:461:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_llake.py:527:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_llake.py:530:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_lreservoir.py:562:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_lreservoir.py:565:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_lretention.py:356:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_lretention.py:359:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_pump.py:251:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_pump.py:254:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_pump_sluice.py:312:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_pump_sluice.py:315:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_sluice.py:292:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_sluice.py:295:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v001.py:1263:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v001.py:1266:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v002.py:379:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v002.py:382:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v003.py:420:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v003.py:423:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v004.py:663:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v004.py:666:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v005.py:477:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/dam_v005.py:480:5-12: Class member `Model.pemodel` overrides parent class `Main_PEModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap/evap_model.py:8525:30-39: `TempModel_V1` is not assignable to attribute `tempmodel` with type `SubmodelProperty[Unknown]` [bad-assignment]
+ ERROR hydpy/models/evap/evap_model.py:8650:32-41: `PrecipModel_V1` is not assignable to attribute `precipmodel` with type `SubmodelProperty[Unknown]` [bad-assignment]
+ ERROR hydpy/models/evap/evap_model.py:8895:32-41: `IntercModel_V1` is not assignable to attribute `intercmodel` with type `SubmodelProperty[Unknown]` [bad-assignment]
+ ERROR hydpy/models/evap/evap_model.py:8961:35-44: `SoilWaterModel_V1` is not assignable to attribute `soilwatermodel` with type `SubmodelProperty[Unknown]` [bad-assignment]
+ ERROR hydpy/models/evap/evap_model.py:9027:35-44: `SnowCoverModel_V1` is not assignable to attribute `snowcovermodel` with type `SubmodelProperty[Unknown]` [bad-assignment]
+ ERROR hydpy/models/evap/evap_model.py:9093:37-46: `SnowyCanopyModel_V1` is not assignable to attribute `snowycanopymodel` with type `SubmodelProperty[Unknown]` [bad-assignment]
+ ERROR hydpy/models/evap/evap_model.py:9159:36-45: `SnowAlbedoModel_V1` is not assignable to attribute `snowalbedomodel` with type `SubmodelProperty[Unknown]` [bad-assignment]
+ ERROR hydpy/models/evap/evap_parameters.py:75:5-9: Class member `ZipParameter1D.mask` overrides parent class `ZipParameter` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_hbv96.py:361:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_hbv96.py:361:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V2B` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_hbv96.py:364:5-13: Class member `Model.petmodel` overrides parent class `Main_PET_PETModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_hbv96.py:364:5-13: Class member `Model.petmodel` overrides parent class `Main_PET_PETModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_hbv96.py:367:5-16: Class member `Model.intercmodel` overrides parent class `Main_IntercModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_hbv96.py:368:5-19: Class member `Model.soilwatermodel` overrides parent class `Main_SoilWaterModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_hbv96.py:369:5-19: Class member `Model.snowcovermodel` overrides parent class `Main_SnowCoverModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_minhas.py:324:5-13: Class member `Model.petmodel` overrides parent class `Main_PET_PETModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_minhas.py:324:5-13: Class member `Model.petmodel` overrides parent class `Main_PET_PETModel_V2` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_minhas.py:327:5-16: Class member `Model.intercmodel` overrides parent class `Main_IntercModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_minhas.py:328:5-19: Class member `Model.soilwatermodel` overrides parent class `Main_SoilWaterModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:610:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:610:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V2B` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:613:5-19: Class member `Model.radiationmodel` overrides parent class `Main_RadiationModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:613:5-19: Class member `Model.radiationmodel` overrides parent class `Main_RadiationModel_V4` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:616:5-16: Class member `Model.intercmodel` overrides parent class `Main_IntercModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:617:5-19: Class member `Model.soilwatermodel` overrides parent class `Main_SoilWaterModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:618:5-19: Class member `Model.snowcovermodel` overrides parent class `Main_SnowCoverModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:619:5-21: Class member `Model.snowycanopymodel` overrides parent class `Main_SnowyCanopyModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_aet_morsim.py:622:5-20: Class member `Model.snowalbedomodel` overrides parent class `Main_SnowAlbedoModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_ambav1.py:471:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_ambav1.py:471:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V2B` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_ambav1.py:474:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_ambav1.py:474:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2B` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_ambav1.py:477:5-19: Class member `Model.radiationmodel` overrides parent class `Main_RadiationModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_ambav1.py:477:5-19: Class member `Model.radiationmodel` overrides parent class `Main_RadiationModel_V4` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_ambav1.py:480:5-19: Class member `Model.snowcovermodel` overrides parent class `Main_SnowCoverModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_hbv96.py:139:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_hbv96.py:139:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V2A` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_hbv96.py:142:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_hbv96.py:142:5-16: Class member `Model.precipmodel` overrides parent class `Main_PrecipModel_V2A` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_m.py:91:5-13: Class member `Model.retmodel` overrides parent class `Main_RET_PETModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_pet_mlc.py:104:5-13: Class member `Model.retmodel` overrides parent class `Main_RET_PETModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_ret_fao56.py:257:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_ret_fao56.py:257:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V2A` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_ret_fao56.py:260:5-19: Class member `Model.radiationmodel` overrides parent class `Main_RadiationModel_V1` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_ret_fao56.py:260:5-19: Class member `Model.radiationmodel` overrides parent class `Main_RadiationModel_V3` in an inconsistent manner [bad-override]
+ ERROR hydpy/models/evap_ret_tw2002.py:157:5-14: Class member `Model.tempmodel` overrides parent class `Main_TempModel_V1` in an inconsistent manner [bad-override]
... (truncated 100 lines) ...
attrs (https://github.com/python-attrs/attrs)
- ERROR tests/test_annotations.py:594:13-14: Dataclass field `b` without a default may not follow dataclass field with a default [bad-class-definition]
asynq (https://github.com/quora/asynq)
- ERROR asynq/decorators.py:193:20-40: Object of class `DecoratorBinder` has no attribute `asynq` [missing-attribute]
+ ERROR asynq/decorators.py:193:20-40: Object of class `DecoratorBase` has no attribute `asynq` [missing-attribute]
- ERROR asynq/decorators.py:195:20-40: Object of class `DecoratorBinder` has no attribute `asynq` [missing-attribute]
+ ERROR asynq/decorators.py:195:20-40: Object of class `DecoratorBase` has no attribute `asynq` [missing-attribute]
- ERROR asynq/decorators.py:199:20-42: Object of class `DecoratorBinder` has no attribute `asyncio` [missing-attribute]
+ ERROR asynq/decorators.py:199:20-42: Object of class `DecoratorBase` has no attribute `asyncio` [missing-attribute]
- ERROR asynq/decorators.py:201:20-42: Object of class `DecoratorBinder` has no attribute `asyncio` [missing-attribute]
+ ERROR asynq/decorators.py:201:20-42: Object of class `DecoratorBase` has no attribute `asyncio` [missing-attribute]
- ERROR asynq/tests/test_tools.py:189:17-77: Object of class `DecoratorBinder` has no attribute `__acached_per_instance_cache__` [missing-attribute]
+ ERROR asynq/tests/test_tools.py:189:17-77: Object of class `DecoratorBase` has no attribute `__acached_per_instance_cache__` [missing-attribute]
- ERROR asynq/tools.py:336:13-33: Object of class `DecoratorBinder` has no attribute `dirty` [missing-attribute]
+ ERROR asynq/tools.py:336:13-33: Object of class `DecoratorBase` has no attribute `dirty` [missing-attribute]
- ERROR asynq/tools.py:338:13-33: Object of class `DecoratorBinder` has no attribute `dirty` [missing-attribute]
+ ERROR asynq/tools.py:338:13-33: Object of class `DecoratorBase` has no attribute `dirty` [missing-attribute]
Expression (https://github.com/cognitedata/Expression)
- ERROR tests/test_parser.py:188:5-16: Dataclass field `comparators` without a default may not follow dataclass field with a default [bad-class-definition]
- ERROR tests/test_parser.py:189:5-8: Dataclass field `ops` without a default may not follow dataclass field with a default [bad-class-definition]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ERROR ddtrace/internal/wrapping/context.py:291:9-25: Attribute `__wrapped__` of class `BaseWrappingContext` is a read-only descriptor with no `__set__` and cannot be set [read-only]
- ERROR ddtrace/internal/wrapping/context.py:350:54-70: Argument `MethodType` is not assignable to parameter `f` with type `FunctionType` in function `_UniversalWrappingContext.extract` [bad-argument-type]
- ERROR ddtrace/internal/wrapping/context.py:375:77-93: Argument `MethodType` is not assignable to parameter `f` with type `FunctionType` in function `BaseWrappingContext.wrapped` [bad-argument-type]
- ERROR ddtrace/internal/wrapping/context.py:380:49-50: Argument `MethodType` is not assignable to parameter `f` with type `FunctionType` in function `_UniversalWrappingContext.is_wrapped` [bad-argument-type]
- ERROR ddtrace/internal/wrapping/context.py:381:47-48: Argument `MethodType` is not assignable to parameter `f` with type `FunctionType` in function `_UniversalWrappingContext.extract` [bad-argument-type]
- ERROR ddtrace/internal/wrapping/context.py:414:32-48: Argument `MethodType` is not assignable to parameter `f` with type `FunctionType` in function `WrappingContext.is_wrapped` [bad-argument-type]
- ERROR ddtrace/internal/wrapping/context.py:518:32-33: Argument `MethodType` is not assignable to parameter `f` with type `FunctionType` in function `_UniversalWrappingContext.is_wrapped` [bad-argument-type]
- ERROR ddtrace/internal/wrapping/context.py:592:13-23: Attribute `__code__` of class `MethodType` is a read-only property and cannot be set [read-only]
- ERROR ddtrace/internal/wrapping/context.py:597:36-37: Argument `MethodType` is not assignable to parameter `f` with type `FunctionType` in function `_UniversalWrappingContext.is_wrapped` [bad-argument-type]
... (truncated 6 lines) ...``` |
stroxler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Descriptors are tricky and the mypy primer results suggest that we traded some false positives for others here, but I think that's okay - this PR is a step in the right direction and I'll stack a few more improvements on top.
I'll try to get a second review and get it merged sometime in the next week.
Summary
Fixes false “read-only descriptor” errors for annotation-only fields
Fixes #819
Test Plan
cargo test -p pyrefly test_inherit_