From 6ea650e2c3c5cdc7ce80249449fe7ccaaaf35ace Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 29 Feb 2016 15:50:10 +0900 Subject: Add missing docstring for Change#from_json Closes #33 Change-Id: I57616a8b8fa513f0ce650613b1ed9ec31b0322b4 --- pygerrit/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pygerrit/models.py b/pygerrit/models.py index 284701d..5960286 100644 --- a/pygerrit/models.py +++ b/pygerrit/models.py @@ -74,6 +74,12 @@ class Change(object): @staticmethod def from_json(json_data): + r""" Create a Change instance. + + Return an instance of Change initialised with values from "change" + in `json_data`, or None if `json_data` does not contain "change". + + """ if "change" in json_data: return Change(json_data["change"]) return None -- cgit v1.2.1