ERROR src/prefect/concurrency/_leases.py:116:10-28: Cannot use `AsyncCancelScope` as a context manager [bad-context-manager]
ERROR src/prefect/concurrency/_leases.py:116: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]
ERROR src/prefect/events/actions.py:63:5-9: Class member `RunDeployment.type` overrides parent class `DeploymentAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:91:5-9: Class member `PauseDeployment.type` overrides parent class `DeploymentAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:97:5-9: Class member `ResumeDeployment.type` overrides parent class `DeploymentAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:103:5-9: Class member `ChangeFlowRunState.type` overrides parent class `Action` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:122:5-9: Class member `CancelFlowRun.type` overrides parent class `Action` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:128:5-9: Class member `ResumeFlowRun.type` overrides parent class `Action` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:134:5-9: Class member `SuspendFlowRun.type` overrides parent class `Action` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:140:5-9: Class member `CallWebhook.type` overrides parent class `Action` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:153:5-9: Class member `SendNotification.type` overrides parent class `Action` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:184:5-9: Class member `PauseWorkPool.type` overrides parent class `WorkPoolAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:190:5-9: Class member `ResumeWorkPool.type` overrides parent class `WorkPoolAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:226:5-9: Class member `PauseWorkQueue.type` overrides parent class `WorkQueueAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:232:5-9: Class member `ResumeWorkQueue.type` overrides parent class `WorkQueueAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:268:5-9: Class member `PauseAutomation.type` overrides parent class `AutomationAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:274:5-9: Class member `ResumeAutomation.type` overrides parent class `AutomationAction` in an inconsistent manner [bad-override]
ERROR src/prefect/events/actions.py:280:5-9: Class member `DeclareIncident.type` overrides parent class `Action` in an inconsistent manner [bad-override]
ERROR src/prefect/events/cli/automations.py:173:52-54: Missing argument `self` in function `pydantic.main.BaseModel.model_dump_json` [missing-argument]
ERROR src/prefect/events/cli/automations.py:175:23-33: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:176:42-43: Argument `Automation` is not assignable to parameter `obj` with type `type[BaseModel]` in function `no_really_json` [bad-argument-type]
ERROR src/prefect/events/cli/automations.py:176:54-64: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:177:25-35: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:178:41-51: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:178:41-51: Argument `Automation` is not assignable to parameter `obj` with type `type[BaseModel]` in function `no_really_json` [bad-argument-type]
ERROR src/prefect/events/cli/automations.py:181:43-53: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:184:30-40: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:187:34-44: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:241:44-54: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:241:44-57: Object of class `NoneType` has no attribute `id` [missing-attribute]
ERROR src/prefect/events/cli/automations.py:242:65-75: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:242:65-78: Object of class `NoneType` has no attribute `id` [missing-attribute]
ERROR src/prefect/events/cli/automations.py:296:43-53: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:296:43-56: Object of class `NoneType` has no attribute `id` [missing-attribute]
ERROR src/prefect/events/cli/automations.py:297:64-74: `automation` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:297:64-77: Object of class `NoneType` has no attribute `id` [missing-attribute]
ERROR src/prefect/events/cli/automations.py:359:44-46: Argument `str` is not assignable to parameter `automation_id` with type `UUID` in function `prefect.client.orchestration._automations.client.AutomationAsyncClient.delete_automation` [bad-argument-type]
ERROR src/prefect/events/cli/automations.py:429:33-42: Argument `str | None` is not assignable to parameter `__obj` with type `bytearray | bytes | memoryview[int] | str` in function `orjson.loads` [bad-argument-type]
ERROR src/prefect/events/cli/automations.py:434:19-23: `data` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:434:52-56: `data` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:435:28-32: `data` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:436:21-25: `data` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:437:28-32: `data` may be uninitialized [unbound-name]
ERROR src/prefect/events/cli/automations.py:439:29-33: `data` may be uninitialized [unbound-name]
ERROR src/prefect/events/clients.py:36:5-28: Could not import `PREFECT_API_AUTH_STRING` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/clients.py:37:5-20: Could not import `PREFECT_API_KEY` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/clients.py:38:5-20: Could not import `PREFECT_API_URL` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/clients.py:39:5-26: Could not import `PREFECT_CLOUD_API_URL` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/clients.py:40:5-23: Could not import `PREFECT_DEBUG_MODE` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/clients.py:41:5-40: Could not import `PREFECT_SERVER_ALLOW_EPHEMERAL_MODE` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/filters.py:75:23-81:6: `datetime` is not assignable to `DateTime` [bad-assignment]
ERROR src/prefect/events/filters.py:82:23-85:6: `datetime` is not assignable to `DateTime` [bad-assignment]
ERROR src/prefect/events/related.py:100:31-51: Argument `BoundMethod[PrefectClient, (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 `BoundMethod[PrefectClient, (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 `BoundMethod[PrefectClient, (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 `BoundMethod[PrefectClient, (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:124:5-9: Class member `EventTrigger.type` overrides parent class `ResourceTrigger` in an inconsistent manner [bad-override]
ERROR src/prefect/events/schemas/automations.py:299:5-9: Class member `MetricTrigger.type` overrides parent class `ResourceTrigger` in an inconsistent manner [bad-override]
ERROR src/prefect/events/schemas/automations.py:329:5-9: Class member `CompositeTrigger.type` overrides parent class `Trigger` in an inconsistent manner [bad-override]
ERROR src/prefect/events/schemas/automations.py:345:5-9: Class member `CompoundTrigger.type` overrides parent class `CompositeTrigger` in an inconsistent manner [bad-override]
ERROR src/prefect/events/schemas/automations.py:382:5-9: Class member `SequenceTrigger.type` overrides parent class `CompositeTrigger` in an inconsistent manner [bad-override]
ERROR src/prefect/events/schemas/events.py:32:5-47: Could not import `PREFECT_EVENTS_MAXIMUM_LABELS_PER_RESOURCE` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/schemas/events.py:104:34-74: Could not import `PREFECT_EVENTS_MAXIMUM_RELATED_RESOURCES` from `prefect.settings` [missing-module-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:10:5-20: Could not import `PREFECT_API_KEY` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/worker.py:11:5-20: Could not import `PREFECT_API_URL` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/worker.py:12:5-26: Could not import `PREFECT_CLOUD_API_URL` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/events/worker.py:74:9-22: Class member `EventsWorker._prepare_item` overrides parent class `QueueService` in an inconsistent manner [bad-param-name-override]
ERROR src/prefect/events/worker.py:78:15-22: Class member `EventsWorker._handle` overrides parent class `QueueService` in an inconsistent manner [bad-param-name-override]
ERROR src/prefect/events/worker.py:100:9-17: Class member `EventsWorker.instance` overrides parent class `QueueService` in an inconsistent manner [bad-override]
 WARN src/prefect/input/actions.py:46:34-53: `pydantic.main.BaseModel.json` is deprecated [deprecated]
ERROR src/prefect/input/run_input.py:252:30-46: No matching overload found for function `pydantic._internal._utils.deprecated_instance_property.__get__` called with arguments: (None, type[RunInput]) [no-matching-overload]
ERROR src/prefect/input/run_input.py:354:38-44: Argument `dict[Literal['description', 'response', 'schema'], str]` is not assignable to parameter `keyset` with type `dict[str, str]` in function `BaseRunInput.load` [bad-argument-type]
ERROR src/prefect/input/run_input.py:626:51-628:10: `type[AutomaticRunInput[Any]] | type[BaseModel]` is not assignable to `type[AutomaticRunInput[Any]]` [bad-assignment]
ERROR src/prefect/input/run_input.py:626:79-628:10: `BaseModel` is not assignable to upper bound `RunInput` of type variable `R` [bad-specialization]
ERROR src/prefect/server/models/artifacts.py:107: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:112: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:449:12-36: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/artifacts.py:449:39-65: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/artifacts.py:534:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/block_documents.py:473:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/block_documents.py:664:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/block_schemas.py:264:13-41: Object of class `dict` has no attribute `replace` [missing-attribute]
ERROR src/prefect/server/models/block_schemas.py:268:30-54: Object of class `dict` has no attribute `replace` [missing-attribute]
ERROR src/prefect/server/models/block_schemas.py:303:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/block_types.py:200:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/block_types.py:221:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits.py:153:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits.py:165:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits_v2.py:171:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits_v2.py:192:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits_v2.py:236:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits_v2.py:284:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/concurrency_limits_v2.py:306: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:35:5-44: Could not import `PREFECT_API_SERVICES_SCHEDULER_MAX_RUNS` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/server/models/deployments.py:36:5-54: Could not import `PREFECT_API_SERVICES_SCHEDULER_MAX_SCHEDULED_TIME` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/server/models/deployments.py:37:5-44: Could not import `PREFECT_API_SERVICES_SCHEDULER_MIN_RUNS` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/server/models/deployments.py:38:5-54: Could not import `PREFECT_API_SERVICES_SCHEDULER_MIN_SCHEDULED_TIME` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/server/models/deployments.py:108: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:324:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:593:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:1041:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:1066:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:1093:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/deployments.py:1139:20-47: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:1146: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:1192:24-51: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/deployments.py:1199: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/events.py:23:30-75: Could not import `PREFECT_API_EVENTS_RELATED_RESOURCE_CACHE_TTL` from `prefect.settings` [missing-module-attribute]
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:47:5-45: Could not import `PREFECT_API_MAX_FLOW_RUN_GRAPH_ARTIFACTS` from `prefect.settings` [missing-module-attribute]
ERROR src/prefect/server/models/flow_runs.py:48:5-41: Could not import `PREFECT_API_MAX_FLOW_RUN_GRAPH_NODES` from `prefect.settings` [missing-module-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:504:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/flow_runs.py:582:15-46: Object of class `OrchestrationContext` has no attribute `validate_proposed_state` [missing-attribute]
ERROR src/prefect/server/models/flow_runs.py:611: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:685:19-34: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/flows.py:83:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/flows.py:290:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/logs.py:113: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:462:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/task_runs.py:535:15-46: Object of class `OrchestrationContext` has no attribute `validate_proposed_state` [missing-attribute]
ERROR src/prefect/server/models/variables.py:123:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/variables.py:140:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/variables.py:154:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/variables.py:168:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/work_queues.py:88: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:282:15-30: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/work_queues.py:311:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/work_queues.py:342: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:463: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:571: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:576:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/work_queues.py:609: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:614:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/work_queues.py:628: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:631:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
ERROR src/prefect/server/models/workers.py:253:15-30: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:263:17-25: Unexpected keyword argument `occurred` [unexpected-keyword]
ERROR src/prefect/server/models/workers.py:264:17-37: Unexpected keyword argument `pre_update_work_pool` [unexpected-keyword]
ERROR src/prefect/server/models/workers.py:265:17-26: Unexpected keyword argument `work_pool` [unexpected-keyword]
ERROR src/prefect/server/models/workers.py:289:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:328: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:329: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:626:15-30: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:672:12-18: Module `sqlalchemy.exc` exists, but was not imported explicitly. You are relying on other modules to load it. [implicit-import]
ERROR src/prefect/server/models/workers.py:755:55-81: `int` is not assignable to TypedDict key `heartbeat_interval_seconds` with type `WorkerStatus | datetime` [bad-typed-dict-key]
ERROR src/prefect/server/models/workers.py:770:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:799:12-27: Object of class `Result` has no attribute `rowcount` [missing-attribute]
ERROR src/prefect/server/models/workers.py:811:16-43: Cannot use `PrefectServerEventsClient` as a context manager [bad-context-manager]
 INFO Checking project configured at `<CWD>/pyrefly.toml`
 INFO 162 errors (12 suppressed)
