Merge pull request #8 from hmd37/patch-1

Update to modern version of Optional type
This commit is contained in:
mirai
2025-11-18 15:45:02 +03:00
committed by GitHub
+1 -2
View File
@@ -1,7 +1,6 @@
import ast
import time
import threading
from typing import Optional
from websocket import create_connection, WebSocketConnectionClosedException
@@ -19,7 +18,7 @@ class Client(RSAService, RichClientRenderer):
server: str,
port: int,
username: str,
password: Optional[str] = None
password: str | None = None
):
super().__init__()
self.server = server