feat: refactoring typed programing

This commit is contained in:
Euiseo Cha 2024-08-31 17:46:03 +09:00
parent 910e5e4ed5
commit 6b99ee97ce
No known key found for this signature in database
GPG Key ID: 39F74FF9CEA87CC9

View File

@ -129,7 +129,7 @@ def parse_first_data(data: bytes):
def conn_string(conn: socket.socket, data: bytes, addr: bytes):
# JSON-RPC 2.0 request
def process_jsonrpc2(_data):
def process_jsonrpc2(_data: bytes):
json_data = json.loads(_data.decode(client_encoding, errors="ignore"))
if json_data["jsonrpc"] == "2.0":
jsonrpc2_server(