Use literal syntax instead of function calls to create data structure
This commit is contained in:
committed by
GitHub
parent
2a5a9b35fb
commit
a06c94a69e
@@ -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):
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user