Skip to content

A couple of minor cleanups#31890

Merged
uranusjr merged 4 commits into
apache:mainfrom
astronomer:misc-cleanups
Jun 28, 2023
Merged

A couple of minor cleanups#31890
uranusjr merged 4 commits into
apache:mainfrom
astronomer:misc-cleanups

Conversation

@uranusjr

Copy link
Copy Markdown
Member

The operator import is shadowing a global import and can be safely removed.

See #31791 for motivation behind the with_for_update change. cc @tquazi @ephraimbuddy

This local import is not needed since Operator is already imported for
typing at the top of the module, and we don't use it at runtime at all.
@uranusjr
uranusjr requested review from XD-DENG, ashb and kaxil as code owners June 14, 2023 08:58
This makes the locking code more backend-compatible, and also more
readable since the weird "unused" result is no longer in scope.
Comment thread airflow/utils/sqlalchemy.py
@uranusjr
uranusjr merged commit 5c0fca6 into apache:main Jun 28, 2023
@uranusjr
uranusjr deleted the misc-cleanups branch June 28, 2023 10:52
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.0 milestone Jul 6, 2023
@ephraimbuddy ephraimbuddy added type:improvement Changelog: Improvements type:misc/internal Changelog: Misc changes that should appear in change log and removed type:improvement Changelog: Improvements labels Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants