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()