@@ -41,7 +41,7 @@ def _update_attributes(self, user):
4141 self .login = user ["login" ]
4242 self ._api = self .url = user ["url" ]
4343
44- def to_user (self ) :
44+ def to_user (self , conditional : bool = False ) -> models . GitHubCore :
4545 """Retrieve a full User object for this EventUser.
4646
4747 :returns:
@@ -93,7 +93,7 @@ def _update_attributes(self, org):
9393 self .login = org ["login" ]
9494 self ._api = self .url = org ["url" ]
9595
96- def to_org (self ) :
96+ def to_org (self , conditional : bool = False ) -> models . GitHubCore :
9797 """Retrieve a full Organization object for this EventOrganization.
9898
9999 :returns:
@@ -148,7 +148,7 @@ def _update_attributes(self, pull):
148148 self .locked = pull ["locked" ]
149149 self ._api = self .url = pull ["url" ]
150150
151- def to_pull (self ) :
151+ def to_pull (self , conditional : bool = False ) -> models . GitHubCore :
152152 """Retrieve a full PullRequest object for this EventPullRequest.
153153
154154 :returns:
@@ -258,7 +258,9 @@ def _update_attributes(self, comment):
258258 self .updated_at = self ._strptime (comment ["updated_at" ])
259259 self .user = users .ShortUser (comment ["user" ], self )
260260
261- def to_review_comment (self ):
261+ def to_review_comment (
262+ self , conditional : bool = False
263+ ) -> models .GitHubCore :
262264 """Retrieve a full ReviewComment object for this EventReviewComment.
263265
264266 :returns:
@@ -269,7 +271,7 @@ def to_review_comment(self):
269271 from . import pulls
270272
271273 comment = self ._json (self ._get (self ._api ), 200 )
272- return pulls .ReviewComment (comment , self )
274+ return pulls .ReviewComment (comment , self . session )
273275
274276 refresh = to_review_comment
275277
@@ -285,7 +287,7 @@ def _update_attributes(self, issue):
285287 self .locked = issue ["locked" ]
286288 self ._api = self .url = issue ["url" ]
287289
288- def to_issue (self ) :
290+ def to_issue (self , conditional : bool = False ) -> models . GitHubCore :
289291 """Retrieve a full Issue object for this EventIssue."""
290292 from . import issues
291293
@@ -352,7 +354,9 @@ def _update_attributes(self, comment):
352354 self .updated_at = self ._strptime (comment ["updated_at" ])
353355 self .user = users .ShortUser (comment ["user" ], self )
354356
355- def to_issue_comment (self ):
357+ def to_issue_comment (
358+ self , conditional : bool = False
359+ ) -> models .GitHubCore :
356360 """Retrieve the full IssueComment object for this comment.
357361
358362 :returns:
0 commit comments