-
Notifications
You must be signed in to change notification settings - Fork 127
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
refactor: implement legacy hookwrappers in terms of a modern hook" #546
base: main
Are you sure you want to change the base?
refactor: implement legacy hookwrappers in terms of a modern hook" #546
Conversation
cc5ef1d
to
d249bd5
Compare
@nicoddemus ping - can you take a look |
failures unrelated as pytest dropped python3.8 on main |
Raising a StopIteration in a generator triggers a RuntimeError. If the RuntimeError of a generator has the passed in StopIteration as cause resume with that StopIteration as normal exception instead of failing with the RuntimeError.
4c28878
to
ee85998
Compare
ae3572d
to
a3c8d56
Compare
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.
LGTM!
Sorry for the delay, seems like I missed the notifications for this one.
Teardown = Generator[None, object, object] | ||
|
||
|
||
def run_legacy_hookwrapper( |
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 call this "old-style" in the docs, perhaps:
def run_legacy_hookwrapper( | |
def run_old_style_hookwrapper( |
followup to #545
moves the implementation of legacy hooks into a new style hook