apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
37.27k stars 14.34k forks source link

Fix failing mypy check on `main` #44191

Closed kaxil closed 3 days ago

kaxil commented 3 days ago

Failure on main:

providers/src/airflow/providers/apache/spark/hooks/spark_submit.py:525: error:
Module "airflow.security.kerberos" has no attribute "get_kerberos_principle";
maybe "get_kerberos_principal"?  [attr-defined]
                from airflow.security.kerberos import (
                ^
providers/src/airflow/providers/apache/spark/hooks/spark_submit.py:525: error:
Name "get_kerberos_principal" already defined (possibly by an import)
[no-redef]
                from airflow.security.kerberos import (
                ^
Found 2 errors in 1 file (checked 3337 source files)
Error 1 returned

Example: https://github.com/apache/airflow/actions/runs/11916279945/job/33209076757


^ Add meaningful description above Read the Pull Request Guidelines for more information. In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed. In case of a new dependency, check compliance with the ASF 3rd Party License Policy. In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

potiuk commented 3 days ago

Nice!