summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygerrit/models.py6
1 files changed, 6 insertions, 0 deletions
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