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

@@ -17,11 +17,11 @@ class MercuryClient(PacketsReceiver.PacketsReceiver, Closeable):
_MERCURY_REQUEST_TIMEOUT: int = 3
_seqHolder: int = 1
_seqHolderLock: threading.Condition = threading.Condition()
_callbacks: dict[int, Callback] = dict()
_callbacks: dict[int, Callback] = {}
_removeCallbackLock: threading.Condition = threading.Condition()
_subscriptions: list[MercuryClient.InternalSubListener] = list()
_subscriptions: list[MercuryClient.InternalSubListener] = []
_subscriptionsLock: threading.Condition = threading.Condition()
_partials: dict[int, bytes] = dict()
_partials: dict[int, bytes] = {}
_session: Session = None
def __init__(self, session: Session):