We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
input
def run_non_trapping_async_fn(*async_fn_args, **kwargs): async_fn, *args = async_fn_args with contextlib.closing(async_fn(*args, **kwargs).__await__()) as gen: try: gen.send(None) raise AssertionError(f"{async_fn} did not stop") except StopIteration as e: return e.value
expected output:
def run_non_trapping_async_fn(async_fn, /, *args, **kwargs): with contextlib.closing(async_fn(*args, **kwargs).__await__()) as gen: try: gen.send(None) raise AssertionError(f"{async_fn} did not stop") except StopIteration as e: return e.value
The text was updated successfully, but these errors were encountered:
is this pattern common? it's going to be really difficult and error prone to get this correct
Sorry, something went wrong.
No branches or pull requests
input
expected output:
The text was updated successfully, but these errors were encountered: