def parse(cls, body: Dict):
     return cls(
         Recipient.parse_optional(body.get("author")),
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
         body["commentCount"],
         body["transactionLink"],
     )
Exemplo n.º 2
0
 def parse(cls, body: dict):
     return cls(
         Recipient.parse_optional(body.get("author")),
         Recipient.parse_many(body["reviewers"]),
         Recipient.parse_many(body["subscribers"]),
         body["transactionLink"],
     )
Exemplo n.º 3
0
 def parse(cls, body: Dict):
     return cls(
         body["isReadyToLand"],
         body["isTitleChanged"],
         body["isBugChanged"],
         Recipient.parse_optional(body.get("author")),
         MetadataEditedReviewer.parse_many(body["reviewers"]),
     )
Exemplo n.º 4
0
 def parse(cls, body: Dict):
     return cls(
         body.get("mainComment"),
         InlineComment.parse_many(body["inlineComments"]),
         body["transactionLink"],
         Recipient.parse_optional(body.get("author")),
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
     )
Exemplo n.º 5
0
 def parse(cls, body: dict):
     return cls(
         body.get("landoLink"),
         body["isReadyToLand"],
         Recipient.parse_optional(body.get("author")),
         Recipient.parse_many(body["reviewers"]),
         Recipient.parse_many(body["subscribers"]),
         body["commentCount"],
         body["transactionLink"],
     )