Skip to content
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

Fix class instance vs. class type in validate_database_executor_compatibility() call #40626

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Jul 5, 2024

While implementing AIP-69 I realized that the call to validate_database_executor_compatibility() is actually expecting a type[BaseExecutor] but in one call a class instance of BaseExecutor is handed over.

In most cases this did not generate an error (yet) and I am wondering why mypy did not complain (I assume mainly because the wrapper of LRU cache)... anyway, this PR corrects the call.

@jscheffl jscheffl added the type:bug-fix Changelog: Bug Fixes label Jul 5, 2024
@jscheffl jscheffl force-pushed the bugfix/class-instance-to-class-type branch from 8fa26da to 1162ac3 Compare July 6, 2024 21:14
@potiuk potiuk merged commit e7dedbe into apache:main Jul 7, 2024
49 checks passed
@ephraimbuddy ephraimbuddy added this to the Airflow 2.10.0 milestone Jul 23, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
…tibility() call (apache#40626)

* Fix class instance vs. class type in check call

* Fix class instance vs. class type in check call, adjust pytests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:CLI type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants