Skip to content

Commit

Permalink
Upgrade to the latest version of black.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Jan 27, 2024
1 parent c06e44d commit d28b71d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 2 additions & 4 deletions src/websockets/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down
14 changes: 8 additions & 6 deletions tests/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
]
Expand Down

0 comments on commit d28b71d

Please sign in to comment.