Added type documentation for better referencing in IDEs

This commit is contained in:
Björn Freise 2019-04-23 11:39:37 +02:00
parent 28b465f54e
commit 144c793c43

View file

@ -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):
""" """