Added type documentation for better referencing in IDEs

Mesure-preliminaire
Björn Freise 5 years ago
parent 28b465f54e
commit 144c793c43

@ -33,10 +33,10 @@ class BlockLayer(object):
Handle the Blockwise options. Hides all the exchange to both servers and clients. Handle the Blockwise options. Hides all the exchange to both servers and clients.
""" """
def __init__(self): def __init__(self):
self._block1_sent = {} self._block1_sent = {} # type: dict[hash, BlockItem]
self._block2_sent = {} self._block2_sent = {} # type: dict[hash, BlockItem]
self._block1_receive = {} self._block1_receive = {} # type: dict[hash, BlockItem]
self._block2_receive = {} self._block2_receive = {} # type: dict[hash, BlockItem]
def receive_request(self, transaction): def receive_request(self, transaction):
""" """

Loading…
Cancel
Save