From 37cf057b99e14ae49bdb9410372d106801fa6a66 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 14 Nov 2016 13:56:05 +0100 Subject: [PATCH] PR Feedback for docs --- bigchaindb/models.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bigchaindb/models.py b/bigchaindb/models.py index afda5ca9..a6a2ecdb 100644 --- a/bigchaindb/models.py +++ b/bigchaindb/models.py @@ -248,9 +248,6 @@ class Block(object): def from_dict(cls, block_body): """Transforms a Python dictionary to a Block object. - Note: - Throws errors if passed signature or id is incorrect. - Args: block_body (dict): A block dictionary to be transformed. @@ -299,13 +296,13 @@ class Block(object): return self.to_dict()['id'] def to_dict(self): - """Transforms the object to a Python dictionary. + """Transforms the Block to a Python dictionary. Returns: - dict: The Block as an alternative serialization format. + dict: The Block as a dict. Raises: - OperationError: If a Block doesn't contain any transactions. + OperationError: If the Block doesn't contain any transactions. """ if len(self.transactions) == 0: raise OperationError('Empty block creation is not allowed')