Skip to content

Commit d64c429

Browse files
committed
Remove unnecessary start_soon workaround
1 parent 8771618 commit d64c429

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/trio/_highlevel_open_tcp_stream.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,6 @@ async def attempt_connect(
375375
# allowing the next target to be tried early
376376
attempt_failed = trio.Event()
377377

378-
# workaround to check types until typing of nursery.start_soon improved
379-
if TYPE_CHECKING:
380-
await attempt_connect(
381-
(address_family, socket_type, proto),
382-
addr,
383-
attempt_failed,
384-
)
385-
386378
nursery.start_soon(
387379
attempt_connect,
388380
(address_family, socket_type, proto),

0 commit comments

Comments
 (0)