Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #993 from pipermerriam/piper/type-cleanup-for-Tupl…
Browse files Browse the repository at this point in the history
…e-Sequence-on-input-params

type cleanup for Tuple/Sequence
  • Loading branch information
pipermerriam committed Aug 29, 2019
2 parents a89c207 + 668f20a commit d322e79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/993.misc.rst
@@ -0,0 +1 @@
Relax some input types from ``Tuple[thing, ...]`` to ``Sequence[thing]``
3 changes: 2 additions & 1 deletion p2p/handshake.py
Expand Up @@ -9,6 +9,7 @@
Dict,
Iterable,
NamedTuple,
Sequence,
Type,
Tuple,
)
Expand Down Expand Up @@ -205,7 +206,7 @@ async def _do_p2p_handshake(transport: TransportAPI,

async def negotiate_protocol_handshakes(transport: TransportAPI,
p2p_handshake_params: DevP2PHandshakeParams,
protocol_handshakers: Tuple[Handshaker, ...],
protocol_handshakers: Sequence[Handshaker],
token: CancelToken,
) -> Tuple[MultiplexerAPI, DevP2PReceipt, Tuple[HandshakeReceipt, ...]]: # noqa: E501
"""
Expand Down

0 comments on commit d322e79

Please sign in to comment.