ERROR src/prefect/concurrency/_leases.py:225:10-28: Cannot use `AsyncCancelScope` as a context manager [bad-context-manager]
ERROR src/prefect/concurrency/_leases.py:225:10-28: Cannot use `AsyncCancelScope` as a context manager [bad-context-manager]
ERROR src/prefect/concurrency/v1/sync.py:58:74-81: Unexpected keyword argument `_sync` in function `prefect.concurrency.v1._asyncio.acquire_concurrency_slots` [unexpected-keyword]
ERROR src/prefect/concurrency/v1/sync.py:70:67-74: Unexpected keyword argument `_sync` in function `prefect.concurrency.v1._asyncio.release_concurrency_slots` [unexpected-keyword]
ERROR src/prefect/events/actions.py:27:5-9: Class member `DoNothing.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:63:5-9: Class member `RunDeployment.type` overrides parent class `DeploymentAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:91:5-9: Class member `PauseDeployment.type` overrides parent class `DeploymentAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:97:5-9: Class member `ResumeDeployment.type` overrides parent class `DeploymentAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:103:5-9: Class member `ChangeFlowRunState.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:126:5-9: Class member `CancelFlowRun.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:132:5-9: Class member `DeleteFlowRun.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:138:5-9: Class member `ResumeFlowRun.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:144:5-9: Class member `SuspendFlowRun.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:150:5-9: Class member `CallWebhook.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:163:5-9: Class member `SendNotification.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:194:5-9: Class member `PauseWorkPool.type` overrides parent class `WorkPoolAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:200:5-9: Class member `ResumeWorkPool.type` overrides parent class `WorkPoolAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:236:5-9: Class member `PauseWorkQueue.type` overrides parent class `WorkQueueAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:242:5-9: Class member `ResumeWorkQueue.type` overrides parent class `WorkQueueAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:278:5-9: Class member `PauseAutomation.type` overrides parent class `AutomationAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:284:5-9: Class member `ResumeAutomation.type` overrides parent class `AutomationAction` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/actions.py:290:5-9: Class member `DeclareIncident.type` overrides parent class `Action` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/filters.py:97:23-103:6: `datetime` is not assignable to `DateTime` [bad-assignment]
ERROR src/prefect/events/filters.py:104:23-107:6: `datetime` is not assignable to `DateTime` [bad-assignment]
ERROR src/prefect/events/related.py:100:31-51: Argument `(self: PrefectClient, flow_run_id: UUID) -> Coroutine[Unknown, Unknown, FlowRun]` is not assignable to parameter `client_method` with type `(UUID | str) -> Awaitable[ObjectBaseModel | None]` in function `_get_and_cache_related_object` [bad-argument-type]
ERROR src/prefect/events/related.py:123:35-51: Argument `(self: PrefectClient, flow_id: UUID) -> Coroutine[Unknown, Unknown, Flow]` is not assignable to parameter `client_method` with type `(UUID | str) -> Awaitable[ObjectBaseModel | None]` in function `_get_and_cache_related_object` [bad-argument-type]
ERROR src/prefect/events/related.py:142:39-61: Argument `(self: PrefectClient, id: UUID) -> Coroutine[Unknown, Unknown, WorkQueue]` is not assignable to parameter `client_method` with type `(UUID | str) -> Awaitable[ObjectBaseModel | None]` in function `_get_and_cache_related_object` [bad-argument-type]
ERROR src/prefect/events/related.py:153:39-60: Argument `(self: PrefectClient, work_pool_name: str) -> Coroutine[Unknown, Unknown, WorkPool]` is not assignable to parameter `client_method` with type `(UUID | str) -> Awaitable[ObjectBaseModel | None]` in function `_get_and_cache_related_object` [bad-argument-type]
ERROR src/prefect/events/related.py:212:24-67: Cannot set item in `dict[str, tuple[dict[str, ObjectBaseModel | str | None], DateTime]]` [unsupported-operation]
ERROR src/prefect/events/schemas/automations.py:152:5-9: Class member `EventTrigger.type` overrides parent class `ResourceTrigger` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/schemas/automations.py:327:5-9: Class member `MetricTrigger.type` overrides parent class `ResourceTrigger` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/schemas/automations.py:357:5-9: Class member `CompositeTrigger.type` overrides parent class `Trigger` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/schemas/automations.py:373:5-9: Class member `CompoundTrigger.type` overrides parent class `CompositeTrigger` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/schemas/automations.py:410:5-9: Class member `SequenceTrigger.type` overrides parent class `CompositeTrigger` in an inconsistent manner [bad-override-mutable-attribute]
ERROR src/prefect/events/schemas/events.py:119:50-122:6: `datetime` is not assignable to `DateTime` [bad-assignment]
ERROR src/prefect/events/worker.py:92:9-22: Class member `EventsWorker._prepare_item` overrides parent class `QueueService` in an inconsistent manner [bad-override-param-name]
ERROR src/prefect/events/worker.py:99:15-22: Class member `EventsWorker._handle` overrides parent class `QueueService` in an inconsistent manner [bad-override-param-name]
ERROR src/prefect/events/worker.py:131:9-17: Class member `EventsWorker.instance` overrides parent class `QueueService` in an inconsistent manner [bad-override]
ERROR src/prefect/input/run_input.py:254:30-35: Expected argument after ** to be a mapping, got: Coroutine[Any, Any, Any] | Any in function `BaseRunInput.__init__` [bad-unpacking]
ERROR src/prefect/input/run_input.py:448:16-30: Object of class `Coroutine` has no attribute `value` [missing-attribute]
ERROR src/prefect/input/run_input.py:601:52-67: Type `Coroutine[Any, Any, list[FlowRunInput]]` is not iterable [not-iterable]
ERROR src/prefect/input/run_input.py:603:16-31: Returned type `Coroutine[Any, Any, list[FlowRunInput]] | list[FlowRunInput]` is not assignable to declared return type `list[FlowRunInput]` [bad-return]
ERROR src/prefect/input/run_input.py:672:20-31: Returned type `AutomaticRunInput[T] | Coroutine[Any, Any, AutomaticRunInput[T] | T] | T` is not assignable to declared return type `AutomaticRunInput[T] | T` [bad-return]
ERROR src/prefect/input/run_input.py:713:52-67: Type `Coroutine[Any, Any, list[FlowRunInput]]` is not iterable [not-iterable]
ERROR src/prefect/input/run_input.py:715:16-31: Returned type `Coroutine[Any, Any, list[FlowRunInput]] | list[FlowRunInput]` is not assignable to declared return type `list[FlowRunInput]` [bad-return]
ERROR src/prefect/server/models/artifacts.py:23:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/artifacts.py:25:78-88: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.artifact_collection_created_event` [bad-argument-type]
ERROR src/prefect/server/models/artifacts.py:33:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/artifacts.py:35:78-88: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.artifact_collection_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/artifacts.py:43:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/artifacts.py:45:78-88: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.artifact_collection_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/artifacts.py:144:34-43: Argument `datetime` is not assignable to parameter `now` with type `DateTime | None` in function `_insert_into_artifact_collection` [bad-argument-type]
ERROR src/prefect/server/models/artifacts.py:149:13-22: Argument `datetime` is not assignable to parameter `now` with type `DateTime | None` in function `_insert_into_artifact` [bad-argument-type]
ERROR src/prefect/server/models/artifacts.py:486:12-36: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/artifacts.py:486:39-65: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/artifacts.py:585:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/block_documents.py:34:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/block_documents.py:36:68-78: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.block_document_created_event` [bad-argument-type]
ERROR src/prefect/server/models/block_documents.py:44:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/block_documents.py:46:68-78: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.block_document_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/block_documents.py:54:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/block_documents.py:56:68-78: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.block_document_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/block_documents.py:789:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/block_schemas.py:265:13-41: Object of class `dict` has no attribute `replace` [missing-attribute]
ERROR src/prefect/server/models/block_schemas.py:269:30-54: Object of class `dict` has no attribute `replace` [missing-attribute]
ERROR src/prefect/server/models/block_schemas.py:311:8-23: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/block_schemas.py:621:21-85: Object of class `dict` has no attribute `append` [missing-attribute]
ERROR src/prefect/server/models/block_schemas.py:630:81-633:22: Cannot set item in `dict[str | None, dict[str, str]]` [unsupported-operation]
ERROR src/prefect/server/models/block_types.py:28:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/block_types.py:30:60-70: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.block_type_created_event` [bad-argument-type]
ERROR src/prefect/server/models/block_types.py:36:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/block_types.py:38:60-70: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.block_type_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/block_types.py:44:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/block_types.py:46:60-70: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.block_type_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/concurrency_limits.py:27:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/concurrency_limits.py:29:74-84: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.concurrency_limit_created_event` [bad-argument-type]
ERROR src/prefect/server/models/concurrency_limits.py:37:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/concurrency_limits.py:39:74-84: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.concurrency_limit_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/concurrency_limits.py:47:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/concurrency_limits.py:49:74-84: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.concurrency_limit_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/concurrency_limits_v2.py:21:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/concurrency_limits_v2.py:23:77-87: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.concurrency_limit_v2_created_event` [bad-argument-type]
ERROR src/prefect/server/models/concurrency_limits_v2.py:31:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/concurrency_limits_v2.py:33:77-87: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.concurrency_limit_v2_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/concurrency_limits_v2.py:41:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/concurrency_limits_v2.py:43:77-87: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.concurrency_limit_v2_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/concurrency_limits_v2.py:279:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits_v2.py:327:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits_v2.py:349:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/configuration.py:46:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/csrf_token.py:105:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:155:74-84: Argument `Deployment | DeploymentCreate` is not assignable to parameter `deployment` with type `Deployment` in function `with_system_labels_for_deployment` [bad-argument-type]
ERROR src/prefect/server/models/deployments.py:410:15-30: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:689:62-72: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.deployment_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/deployments.py:704:15-30: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:707:20-47: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:760:57-67: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.deployment_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/deployments.py:787:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:1229:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:1254:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:1281:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:1343:20-47: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:1350:34-45: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.deployment_status_event` [bad-argument-type]
ERROR src/prefect/server/models/deployments.py:1407:24-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:1414:38-48: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.deployment_status_event` [bad-argument-type]
ERROR src/prefect/server/models/deployments.py:1494:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:1499:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.deployment_created_event` [bad-argument-type]
ERROR src/prefect/server/models/deployments.py:1512:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:1518:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.deployment_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/deployments.py:1528:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:1533:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.deployment_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/events.py:82:12-30: Argument `UUID | None` is not assignable to parameter `id` with type `UUID | str` in function `prefect.server.events.schemas.events.Event.__init__` [bad-argument-type]
ERROR src/prefect/server/models/flow_run_input.py:91:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/flow_run_states.py:79:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/flow_runs.py:174:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/flow_runs.py:267:50-80: `flow_or_task_run_exists_clause` may be uninitialized [unbound-name]
ERROR src/prefect/server/models/flow_runs.py:276:29-59: `flow_or_task_run_exists_clause` may be uninitialized [unbound-name]
ERROR src/prefect/server/models/flow_runs.py:322:41-49: Argument `str` is not assignable to parameter `*attrs` with type `Literal['*'] | QueryableAttribute[Any]` in function `sqlalchemy.orm.strategy_options.load_only` [bad-argument-type]
ERROR src/prefect/server/models/flow_runs.py:544:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/flow_runs.py:664:15-46: Object of class `OrchestrationContext` has no attribute `validate_proposed_state` [missing-attribute]
ERROR src/prefect/server/models/flow_runs.py:693:15-20: Argument `DateTime | datetime` is not assignable to parameter `since` with type `DateTime` in function `prefect.server.database.query_components.BaseQueryComponents.flow_run_graph_v2` [bad-argument-type]
ERROR src/prefect/server/models/flow_runs.py:767:19-34: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/flows.py:25:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/flows.py:26:69-79: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.flow_created_event` [bad-argument-type]
ERROR src/prefect/server/models/flows.py:31:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/flows.py:32:69-79: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.flow_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/flows.py:37:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/flows.py:38:69-79: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.flow_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/flows.py:66:16-38: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/logs.py:130:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/saved_searches.py:146:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/task_run_states.py:74:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/task_runs.py:176:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/task_runs.py:483:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/task_runs.py:556:15-46: Object of class `OrchestrationContext` has no attribute `validate_proposed_state` [missing-attribute]
ERROR src/prefect/server/models/variables.py:17:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/variables.py:18:77-87: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.variable_created_event` [bad-argument-type]
ERROR src/prefect/server/models/variables.py:23:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/variables.py:24:77-87: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.variable_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/variables.py:29:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/variables.py:30:77-87: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.events.schemas.lifecycle.variable_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:96:35-75: Argument `uuid.UUID | None` is not assignable to parameter `work_queue_id` with type `uuid.UUID | prefect.server.utilities.database.UUID` in function `prefect.server.models.workers.read_work_queue` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:283:27-46: No matching overload found for function `dict.__init__` called with arguments: (Sequence[Row[tuple[UUID | None, int]]]) [no-matching-overload]
ERROR src/prefect/server/models/work_queues.py:426:15-30: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/work_queues.py:522:30-46: Argument `datetime | None` is not assignable to parameter `scheduled_before` with type `DateTime | None` in function `prefect.server.database.query_components.BaseQueryComponents.get_scheduled_flow_runs_from_work_queues` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:643:52-81: Argument `uuid.UUID | None` is not assignable to parameter `work_queue_id` with type `uuid.UUID | prefect.server.utilities.database.UUID` in function `read_work_queue` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:751:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_status_event` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:756:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/work_queues.py:789:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_status_event` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:794:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/work_queues.py:809:22-32: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_status_event` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:811:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/work_queues.py:823:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/work_queues.py:829:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:839:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/work_queues.py:844:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_created_event` [bad-argument-type]
ERROR src/prefect/server/models/work_queues.py:854:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/work_queues.py:859:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:255:16-30: No matching overload found for function `dict.__init__` called with arguments: (Sequence[Row[tuple[UUID, int]]]) [no-matching-overload]
ERROR src/prefect/server/models/workers.py:305:16-30: No matching overload found for function `dict.__init__` called with arguments: (Sequence[Row[tuple[UUID | None, int]]]) [no-matching-overload]
ERROR src/prefect/server/models/workers.py:380:15-30: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:423:17-25: Unexpected keyword argument `occurred` [unexpected-keyword]
ERROR src/prefect/server/models/workers.py:424:17-37: Unexpected keyword argument `pre_update_work_pool` [unexpected-keyword]
ERROR src/prefect/server/models/workers.py:425:17-26: Unexpected keyword argument `work_pool` [unexpected-keyword]
ERROR src/prefect/server/models/workers.py:451:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/workers.py:455:65-75: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:501:26-42: Argument `datetime | None` is not assignable to parameter `scheduled_before` with type `DateTime | None` in function `prefect.server.database.query_components.BaseQueryComponents.get_scheduled_flow_runs_from_work_pool` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:502:25-40: Argument `datetime | None` is not assignable to parameter `scheduled_after` with type `DateTime | None` in function `prefect.server.database.query_components.BaseQueryComponents.get_scheduled_flow_runs_from_work_pool` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:572:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/workers.py:575:61-71: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_created_event` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:831:15-30: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:907:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/workers.py:910:66-76: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_queue_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:1021:55-81: `int` is not assignable to dict key `heartbeat_interval_seconds` with type `WorkerStatus | datetime` [bad-assignment]
ERROR src/prefect/server/models/workers.py:1036:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:1107:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:1161:9-1172:35: Returned type `Label[Any]` is not assignable to declared return type `ScalarSelect[Unknown]` [bad-return]
ERROR src/prefect/server/models/workers.py:1253:12-16: Returned type `Sequence[Row[tuple[FlowRun, Unknown]]]` is not assignable to declared return type `Sequence[tuple[FlowRun, DateTime | None]]` [bad-return]
ERROR src/prefect/server/models/workers.py:1270:16-30: No matching overload found for function `dict.__init__` called with arguments: (Sequence[Row[tuple[UUID | None, int]]]) [no-matching-overload]
ERROR src/prefect/server/models/workers.py:1342:12-24: Returned type `Sequence[Row[tuple[FlowRun, Unknown]]]` is not assignable to declared return type `Sequence[tuple[FlowRun, DateTime | None]]` [bad-return]
ERROR src/prefect/server/models/workers.py:1354:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/workers.py:1360:26-36: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_pool_updated_event` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:1367:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/workers.py:1369:73-83: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_pool_created_event` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:1375:16-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/workers.py:1377:73-83: Argument `datetime` is not assignable to parameter `occurred` with type `DateTime` in function `prefect.server.models.events.work_pool_deleted_event` [bad-argument-type]
ERROR src/prefect/server/models/workers.py:1390:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
 INFO Checking project configured at `<CWD>/pyrefly.toml`
 INFO 187 errors (16 suppressed, 7 warnings not shown)
