From 16f9de8604a903c2f79470bb407a6d76cca45ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20L=C3=B6ffler?= Date: Fri, 3 May 2024 01:54:47 +0300 Subject: [PATCH] Fix py3.9 syntax --- betfair_parser/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/betfair_parser/stream.py b/betfair_parser/stream.py index 1e48d09..3486841 100644 --- a/betfair_parser/stream.py +++ b/betfair_parser/stream.py @@ -114,7 +114,7 @@ def receive(self, stream: io.RawIOBase) -> Any: return self.receive_bytes(stream.readline()) -def create_ssl_socket(hostname, timeout: float | None = None) -> ssl.SSLSocket: +def create_ssl_socket(hostname, timeout: Optional[float] = None) -> ssl.SSLSocket: """Create ssl socket and set timeout.""" context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) context.load_default_certs()