-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Work around pyupgrade edge cases #26384
Work around pyupgrade edge cases #26384
Conversation
9ac0d40
to
16c14f4
Compare
Ah nice! Would be great if it works :) |
16c14f4
to
05032fe
Compare
05032fe
to
aa58215
Compare
Seems to work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic ! Thanks @uranusjr !
Merged and cherry-picked to v2-4 branch :) |
# annotation expressions at runtime, and Python before 3.9.0 does not lazily | ||
# evaluate those. Putting the expression in a top-level assignment statement | ||
# communicates this runtime requirement to pyupgrade. | ||
BaseOperatorClassList = List[Type[BaseOperator]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're working on how we can remove cattrs #26130 so hopefully we can remove this soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. That is even cooler :)
(cherry picked from commit 9444d97)
Follow-up to #26290