Skip to content

Drop stale type:ignore[override] on ExecutionAPISecretsBackend#68415

Open
dkranchii wants to merge 1 commit into
apache:mainfrom
dkranchii:remove-stale-execution-api-secrets-overrides
Open

Drop stale type:ignore[override] on ExecutionAPISecretsBackend#68415
dkranchii wants to merge 1 commit into
apache:mainfrom
dkranchii:remove-stale-execution-api-secrets-overrides

Conversation

@dkranchii

@dkranchii dkranchii commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Two # type: ignore[override] annotations on ExecutionAPISecretsBackend
are no longer needed; removing them lets mypy verify the override contract
for real instead of silencing it.

  • aget_connection: BaseSecretsBackend has no aget_connection (it
    is sync-only), so [override] cannot fire — there is nothing to
    override.
  • get_connection: signature now matches the base exactly after
    multi-team added team_name to BaseSecretsBackend.get_connection;
    the override only narrows the return type to Connection | None, which
    is a covariant return and accepted. The same pattern is used without
    the ignore in providers/hashicorp/.../vault.py,
    providers/akeyless/.../akeyless.py, and
    airflow-core/.../local_filesystem.py.

Internal type-only cleanup; no runtime behaviour change, no newsfragment.

Follow-up to #65347 / #67216, same pattern.

Was generative AI tooling used to co-author this PR?
  • Yes — Claude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant