Fix typing.

This commit is contained in:
Andrey Rakhmatullin 2026-07-06 12:51:26 +05:00
parent a8996cecad
commit 8609047d37
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ def _free_port() -> int:
# racy but should be fine for tests
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind(("127.0.0.1", 0))
return s.getsockname()[1]
return cast("int", s.getsockname()[1])
def ssl_context_factory(