Use literal syntax instead of function calls to create data structure

This commit is contained in:
deepsource-autofix[bot]
2021-04-09 23:23:34 +00:00
committed by GitHub
parent 2a5a9b35fb
commit a06c94a69e
6 changed files with 12 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ class AudioKeyManager(PacketsReceiver):
_AUDIO_KEY_REQUEST_TIMEOUT: int = 20
_seqHolder: int = 0
_seqHolderLock: threading.Condition = threading.Condition()
_callbacks: dict[int, AudioKeyManager.Callback] = dict()
_callbacks: dict[int, AudioKeyManager.Callback] = {}
_session: Session = None
def __init__(self, session: Session):

View File

@@ -15,7 +15,7 @@ import threading
class ChannelManager(Closeable, PacketsReceiver.PacketsReceiver):
CHUNK_SIZE: int = 128 * 1024
_LOGGER: logging = logging.getLogger(__name__)
_channels: dict[int, Channel] = dict()
_channels: dict[int, Channel] = {}
_seqHolder: int = 0
_seqHolderLock: threading.Condition = threading.Condition()
_executorService: concurrent.futures.ThreadPoolExecutor = concurrent.futures.ThreadPoolExecutor(