Skip to content

Commit

Permalink
Add type annotation for out
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Aug 22, 2024
1 parent b2d9c5b commit 3eb8328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trio/_dtls.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def _current_cookie_tick() -> int:
# Simple deterministic and invertible serializer -- i.e., a useful tool for converting
# structured data into something we can cryptographically sign.
def _signable(*fields: bytes) -> bytes:
out = []
out: list[bytes] = []
for field in fields:
out.extend((struct.pack("!Q", len(field)), field))
return b"".join(out)
Expand Down

0 comments on commit 3eb8328

Please sign in to comment.