Merge pull request #8 from hmd37/patch-1
Update to modern version of Optional type
This commit is contained in:
commit
faaadd839b
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user