@@ -62,12 +62,14 @@ def __init__(self, issue, session=None):
6262 self .html_url = issue .get ('html_url' )
6363 #: Unique ID for the issue.
6464 self .id = issue .get ('id' )
65- #: Returns the list of :class:`Label <Label>`\ s on this issue.
65+ #: Returns the list of :class:`Label <github3.issues.label.Label>`\ s
66+ #: on this issue.
6667 self .labels = [Label (l , self ._session ) for l in issue .get ('labels' )]
6768 labels_url = issue .get ('labels_url' )
6869 #: Labels URL Template. Expand with ``name``
6970 self .labels_urlt = URITemplate (labels_url ) if labels_url else None
70- #: :class:`Milestone <Milestone>` this issue was assigned to.
71+ #: :class:`Milestone <github3.issues.milestone.Milestone>` this
72+ #: issue was assigned to.
7173 self .milestone = None
7274 if issue .get ('milestone' ):
7375 self .milestone = Milestone (issue .get ('milestone' ), self ._session )
@@ -145,7 +147,7 @@ def comment(self, id_num):
145147 sigmavirus24/Todo.txt-python, the first comment's id is 4150787.
146148
147149 :param int id_num: (required), comment id, see example above
148- :returns: :class:`IssueComment <IssueComment>`
150+ :returns: :class:`IssueComment <github3.issues.comment. IssueComment>`
149151 """
150152 json = None
151153 if int (id_num ) > 0 : # Might as well check that it's positive
@@ -160,7 +162,7 @@ def create_comment(self, body):
160162 """Create a comment on this issue.
161163
162164 :param str body: (required), comment body
163- :returns: :class:`IssueComment <IssueComment>`
165+ :returns: :class:`IssueComment <github3.issues.comment. IssueComment>`
164166 """
165167 json = None
166168 if body :
@@ -213,7 +215,8 @@ def iter_comments(self, number=-1):
213215 """Iterate over the comments on this issue.
214216
215217 :param int number: (optional), number of comments to iterate over
216- :returns: iterator of :class:`IssueComment <IssueComment>`
218+ :returns: iterator of
219+ :class:`IssueComment <github3.issues.comment.IssueComment>`\ s
217220 """
218221 url = self ._build_url ('comments' , base_url = self ._api )
219222 return self ._iter (int (number ), url , IssueComment )
@@ -223,7 +226,8 @@ def iter_events(self, number=-1):
223226
224227 :param int number: (optional), number of events to return. Default: -1
225228 returns all events available.
226- :returns: generator of :class:`IssueEvent <IssueEvent>`\ s
229+ :returns: generator of
230+ :class:`IssueEvent <github3.issues.event.IssueEvent>`\ s
227231 """
228232 url = self ._build_url ('events' , base_url = self ._api )
229233 return self ._iter (int (number ), url , IssueEvent )
@@ -235,6 +239,7 @@ def iter_labels(self, number=-1, etag=None):
235239 returns all labels applied to this issue.
236240 :param str etag: (optional), ETag from a previous request to the same
237241 endpoint
242+ :returns: generator of :class:`Label <github3.issues.label.Label>`\ s
238243 """
239244 url = self ._build_url ('labels' , base_url = self ._api )
240245 return self ._iter (int (number ), url , Label , etag = etag )
0 commit comments