This is an automated email from the ASF dual-hosted git repository.

shahar1 pushed a commit to branch airflow-ctl/v0-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/airflow-ctl/v0-1-test by this 
push:
     new a1765b5901c [airflow-ctl/v0-1-test] Remove unused type: ignore 
comments in airflow-ctl (#75203) (#75728)
a1765b5901c is described below

commit a1765b5901cac822233fd79570edc7291d944a4a
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Oct 27 12:56:43 2026 +0200

    [airflow-ctl/v0-1-test] Remove unused type: ignore comments in airflow-ctl 
(#75203) (#75728)
    
    `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.
    (cherry picked from commit 34a955c17dd938d6e81fe4f86c691d18913a0a47)
    
    Co-authored-by: CA <[email protected]>
---
 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 fac122ac924..266ad7783b3 100644
--- a/airflow-ctl/src/airflowctl/api/operations.py
+++ b/airflow-ctl/src/airflowctl/api/operations.py
@@ -229,14 +229,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

Reply via email to