Skip to content

Commit

Permalink
[mypy] remove an unnecessary cast to QuicServer
Browse files Browse the repository at this point in the history
Mypy or typings for asyncio seem to have improved, and it is no longer
necessary to cast the result of create_datagram_endpoint to a
QuicServer.
  • Loading branch information
jlaine committed Apr 28, 2022
1 parent cfcd3ce commit ecfee46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aioquic/asyncio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@ async def serve(
),
local_addr=(host, port),
)
return cast(QuicServer, protocol)
return protocol

0 comments on commit ecfee46

Please sign in to comment.