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

potiuk 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 ed5bcbbf01 Fix mypy errors in "mypy-airflow" tests. (#39816)
ed5bcbbf01 is described below

commit ed5bcbbf0119eea47cc468af4704731e5cf2a3ee
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Fri May 24 20:07:42 2024 +0200

    Fix mypy errors in "mypy-airflow" tests. (#39816)
    
    Tests in "mypy-airflow" were not run in CI and this error went
    undetected. The #39815 fixes the CI setup to also include tests
    but this PR fixes the single error detected by it in CI for
    `mypy-airflow`.
---
 tests/dags/test_imports.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/dags/test_imports.py b/tests/dags/test_imports.py
index 43be6fc08e..0802eec3c2 100644
--- a/tests/dags/test_imports.py
+++ b/tests/dags/test_imports.py
@@ -35,7 +35,7 @@ from airflow.utils import file
 import airflow.decorators, airflow.models\
 , airflow.sensors
 
-if prod:
+if prod:   # type: ignore[name-defined]
     import airflow.if_branch
 else:
     import airflow.else_branch

Reply via email to