Skip to content

Commit 800232c

Browse files
author
Karim Shamazov
committed
use old python syntax
1 parent ec14ab0 commit 800232c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/python/lib/tcp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import socketserver
2+
from typing import Optional
23

34

45
class HelloHandler(socketserver.BaseRequestHandler):
@@ -10,7 +11,7 @@ class Server(socketserver.TCPServer):
1011
allow_reuse_address = True
1112

1213

13-
def make_server(port: int | None) -> Server | None:
14+
def make_server(port: Optional[int]) -> Optional[Server]:
1415
if port:
1516
return Server(('localhost', port), HelloHandler)
1617
return None

0 commit comments

Comments
 (0)