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

jscheffl pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-10-test by this push:
     new e18743872d9 Fix static checks in v2-10-test branch (#47803)
e18743872d9 is described below

commit e18743872d91551ad8123dcc7eab26fa97a960e7
Author: Jens Scheffler <[email protected]>
AuthorDate: Sat Mar 15 11:12:28 2025 +0100

    Fix static checks in v2-10-test branch (#47803)
---
 airflow/serialization/serializers/iceberg.py |  2 +-
 scripts/in_container/run_mypy.sh             | 14 +-------------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/airflow/serialization/serializers/iceberg.py 
b/airflow/serialization/serializers/iceberg.py
index 9498ce0be08..0c4bf61bd73 100644
--- a/airflow/serialization/serializers/iceberg.py
+++ b/airflow/serialization/serializers/iceberg.py
@@ -48,7 +48,7 @@ def serialize(o: object) -> tuple[U, str, int, bool]:
         properties[k] = fernet.encrypt(v.encode("utf-8")).decode("utf-8")
 
     data = {
-        "identifier": o.identifier,
+        "identifier": o.name(),
         "catalog_properties": properties,
     }
 
diff --git a/scripts/in_container/run_mypy.sh b/scripts/in_container/run_mypy.sh
index 0245825a726..1c505fcd2c3 100755
--- a/scripts/in_container/run_mypy.sh
+++ b/scripts/in_container/run_mypy.sh
@@ -20,19 +20,7 @@
 . "$( dirname "${BASH_SOURCE[0]}" )/_in_container_script_init.sh"
 export PYTHONPATH=${AIRFLOW_SOURCES}
 
-ADDITIONAL_MYPY_OPTIONS=()
-
 export MYPY_FORCE_COLOR=true
 export TERM=ansi
 
-if [[ ${SUSPENDED_PROVIDERS_FOLDERS=} != "" ]];
-then
-    for folder in ${SUSPENDED_PROVIDERS_FOLDERS=}
-    do
-        ADDITIONAL_MYPY_OPTIONS+=(
-            "--exclude" "airflow/providers/${folder}/*"
-            "--exclude" "tests/providers/${folder}/*"
-        )
-    done
-fi
-mypy "${ADDITIONAL_MYPY_OPTIONS[@]}" "${@}"
+mypy --exclude airflow/providers --exclude tests/providers "${@}"

Reply via email to