Skip to content

Commit

Permalink
Fix py3.9 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ml31415 committed May 2, 2024
1 parent fb1afa2 commit 16f9de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betfair_parser/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 16f9de8

Please sign in to comment.