Using yield from
for sync cases
#718
michaeloliverx
started this conversation in
General
Replies: 2 comments 6 replies
-
I believe we should change it for |
Beta Was this translation helpful? Give feedback.
0 replies
-
That's certainly an interesting observation @michaeloliverx, thanks. There's a similar code change (with a different motivation) at #657 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Take the following code:
httpcore/httpcore/_sync/connection_pool.py
Lines 345 to 347 in 1d90b36
This can be written as:
Sourcery's docs mention:
There are a couple of places where this could be done:
Unfortunately it is not compatible with the
unasync.py
script setup we have in place.Beta Was this translation helpful? Give feedback.
All reactions