diff --git a/src/websockets/datastructures.py b/src/websockets/datastructures.py index c2a5acfe..aef11bf2 100644 --- a/src/websockets/datastructures.py +++ b/src/websockets/datastructures.py @@ -172,11 +172,9 @@ class SupportsKeysAndGetItem(Protocol): # pragma: no cover """ - def keys(self) -> Iterable[str]: - ... + def keys(self) -> Iterable[str]: ... - def __getitem__(self, key: str) -> str: - ... + def __getitem__(self, key: str) -> str: ... HeadersLike = Union[ diff --git a/tests/test_protocol.py b/tests/test_protocol.py index a1661231..b53c8a1e 100644 --- a/tests/test_protocol.py +++ b/tests/test_protocol.py @@ -37,12 +37,14 @@ def assertFrameSent(self, connection, frame, eof=False): """ frames_sent = [ - None - if write is SEND_EOF - else self.parse( - write, - mask=connection.side is CLIENT, - extensions=connection.extensions, + ( + None + if write is SEND_EOF + else self.parse( + write, + mask=connection.side is CLIENT, + extensions=connection.extensions, + ) ) for write in connection.data_to_send() ]