mirror of
https://github.com/Xevion/tcp-chat.git
synced 2025-12-10 04:08:54 -06:00
Small code beauty/clarity edits & improvements
New code documentation, insignificant code refactors etc.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import logging
|
||||
from typing import Tuple
|
||||
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ class ReceiveWorker(QThread):
|
||||
def stop(self) -> None:
|
||||
self.__isRunning = False
|
||||
|
||||
def __extract_message(self, data) -> dict:
|
||||
@staticmethod
|
||||
def __extract_message(data) -> dict:
|
||||
return {
|
||||
'nickname': data['nickname'],
|
||||
'message': data['content'],
|
||||
|
||||
Reference in New Issue
Block a user