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
commit faaadd839b

View File

@ -1,7 +1,6 @@
import ast import ast
import time import time
import threading import threading
from typing import Optional
from websocket import create_connection, WebSocketConnectionClosedException from websocket import create_connection, WebSocketConnectionClosedException
@ -19,7 +18,7 @@ class Client(RSAService, RichClientRenderer):
server: str, server: str,
port: int, port: int,
username: str, username: str,
password: Optional[str] = None password: str | None = None
): ):
super().__init__() super().__init__()
self.server = server self.server = server