Skip to content

Commit b5233c8

Browse files
committed
Remove now un-needed annotation for socket listeners
1 parent fd09470 commit b5233c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

trio_websocket/_impl.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,7 @@ async def serve_websocket(
651651
host=host,
652652
https_compatible=True,
653653
)
654-
listeners: list[trio.SSLListener[trio.SocketStream]] | list[trio.SocketListener] = (
655-
await open_tcp_listeners()
656-
)
654+
listeners = await open_tcp_listeners()
657655
server = WebSocketServer(
658656
handler,
659657
listeners,

0 commit comments

Comments
 (0)