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

Add stub 'yield' to BaseTrigger.run #27416

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

uranusjr
Copy link
Member

This allows Mypy to correctly recognize the method as an async generator and not emit errors when a subclass (correctly) implements it as so.

Mypy issue: python/mypy#5070

Subclasses currently needs to “fix” the issue by ignoring the error:
https://github.com/astronomer/astronomer-providers/blob/d5446278489cdf774840b934beff900b330850e9/astronomer/providers/google/cloud/triggers/bigquery.py#L59

This allows Mypy to correctly recognize the method as an async generator
and not emit errors when a subclass (correctly) implements it as so.
@potiuk
Copy link
Member

potiuk commented Oct 31, 2022

🤦

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤕

@pierrejeambrun pierrejeambrun merged commit c32ffb0 into apache:main Nov 1, 2022
@uranusjr uranusjr deleted the trigger-run-iterator branch November 2, 2022 09:30
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Nov 16, 2022
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