From 6411df575e792a327b1e41225e9574bab480c326 Mon Sep 17 00:00:00 2001 From: mirai Date: Tue, 18 Nov 2025 10:46:15 +0400 Subject: [PATCH] Updated to modern version of Optional type --- cmd_chat/client/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd_chat/client/client.py b/cmd_chat/client/client.py index b50bdc9..ee78db8 100644 --- a/cmd_chat/client/client.py +++ b/cmd_chat/client/client.py @@ -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