1
1
# -*- coding: utf-8 -*-
2
2
from __future__ import unicode_literals
3
3
4
+ from .. import users
4
5
from ..models import GitHubCore
5
- from ..users import User
6
6
7
7
8
8
class IssueEvent (GitHubCore ):
@@ -37,7 +37,9 @@ def _update_attributes(self, event):
37
37
self .issue = self ._class_attribute (event , 'issue' , Issue , self )
38
38
39
39
#: :class:`User <github3.users.User>` who caused this event.
40
- self .actor = self ._class_attribute (event , 'actor' , User , self )
40
+ self .actor = self ._class_attribute (
41
+ event , 'actor' , users .ShortUser , self ,
42
+ )
41
43
42
44
#: Number of comments
43
45
self .comments = self ._get_attribute (event , 'comments' )
@@ -55,7 +57,9 @@ def _update_attributes(self, event):
55
57
self .id = self ._get_attribute (event , 'id' )
56
58
57
59
#: :class:`User <github3.users.User>` that is assigned
58
- self .assignee = self ._class_attribute (event , 'assignee' , User , self )
60
+ self .assignee = self ._class_attribute (
61
+ event , 'assignee' , users .ShortUser , self ,
62
+ )
59
63
60
64
#: Dictionary containing milestone details
61
65
self .milestone = self ._get_attribute (event , 'milestone' , {})
0 commit comments