This is an automated email from the ASF dual-hosted git repository.
shahar1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 34a955c17dd Remove unused type: ignore comments in airflow-ctl (#75203)
34a955c17dd is described below
commit 34a955c17dd938d6e81fe4f86c691d18913a0a47
Author: CA <[email protected]>
AuthorDate: Tue Oct 27 15:35:39 2026 +0800
Remove unused type: ignore comments in airflow-ctl (#75203)
`mypy --warn-unused-ignores` reports three stale suppressions in
execute_list(): data_model is untyped, so mypy already infers Any and the
[union-attr]/[attr-defined] ignores suppress nothing.
---
airflow-ctl/src/airflowctl/api/operations.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/airflow-ctl/src/airflowctl/api/operations.py
b/airflow-ctl/src/airflowctl/api/operations.py
index a2758740b41..bc92952ac2f 100644
--- a/airflow-ctl/src/airflowctl/api/operations.py
+++ b/airflow-ctl/src/airflowctl/api/operations.py
@@ -243,14 +243,14 @@ class BaseOperations:
def safe_validate(content: bytes) -> BaseModel:
try:
- return data_model.model_validate_json(content) # type:
ignore[union-attr]
+ return data_model.model_validate_json(content)
except ValidationError:
raw = fill_missing_fields(json.loads(content), data_model)
- return data_model.model_validate(raw) # type:
ignore[union-attr]
+ return data_model.model_validate(raw)
self.response = self.client.get(path, params={**shared_params,
"offset": offset})
first_pass = safe_validate(self.response.content)
- total_entries = first_pass.total_entries # type: ignore[attr-defined]
+ total_entries = first_pass.total_entries
if total_entries < limit:
return first_pass
found_key = None