Skip to content

Ignore mypy errors for deprecated executors #52187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented Jun 24, 2025

I removed SimpleTaskInstance in #52176 since it isn't used in Airflow 3. This caused failure in hybrid executors like LocalKubernetesExecutor and CeleryKubernetesExecutor -- which aren't suported in Airflow 3. Hence we can ignore mypy errors.


^ 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 airflow-core/newsfragments.

I removed SimpleTaskInstance in apache#52176 since it isn't used in Airflow 3. This caused failure in hybrid executors like `LocalKubernetesExecutor` and `CeleryKubernetesExecutor` -- which aren't suported in Airflow 3. Hence we can ignore mypy errors.
@gopidesupavan
Copy link
Member

do we need try catch import ? may be for compat tests? as its providers changes.

@kaxil
Copy link
Member Author

kaxil commented Jun 24, 2025

do we need try catch import ? may be for compat tests? as its providers changes.

Don't think so, since both the modules aren't supported for AF 3

@kaxil kaxil merged commit 68f9f34 into apache:main Jun 24, 2025
64 of 71 checks passed
@kaxil kaxil deleted the fix-mypy branch June 24, 2025 19:21
potiuk added a commit to potiuk/airflow that referenced this pull request Jun 24, 2025
The apache#52187 added ignores in a bit wrong place due to auto-reformatting
potiuk added a commit that referenced this pull request Jun 24, 2025
The #52187 added ignores in a bit wrong place due to auto-reformatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants