Closed mgorny closed 5 months ago
cc @sobolevn as well
This is easy to fix but the weird thing is that no unit tests caught this; the NameError happens on any call to staggered_race()
. We should really have test coverage for staggered.py
.
Linking #114282 where this was changed.
I'll fix it, sorry!
Thanks a lot! I can confirm that aiohappyeyeballs
are good now.
Yoo i actually had to fix this now aswell :)
Bug report
Bug description:
asyncio/staggered.py
is usingtyping.Optional
:https://github.com/python/cpython/blob/65de194dd80bbc8cb7098d21cfd6aefd11d0d0ce/Lib/asyncio/staggered.py#L73
However, #114281 removed the
typing
import. This causes test failures inaiohappyeyeballs
:CC @AA-Turner
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Linux
Linked PRs