@@ -62,12 +62,14 @@ def __init__(self, issue, session=None):
62
62
self .html_url = issue .get ('html_url' )
63
63
#: Unique ID for the issue.
64
64
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.
66
67
self .labels = [Label (l , self ._session ) for l in issue .get ('labels' )]
67
68
labels_url = issue .get ('labels_url' )
68
69
#: Labels URL Template. Expand with ``name``
69
70
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.
71
73
self .milestone = None
72
74
if issue .get ('milestone' ):
73
75
self .milestone = Milestone (issue .get ('milestone' ), self ._session )
@@ -145,7 +147,7 @@ def comment(self, id_num):
145
147
sigmavirus24/Todo.txt-python, the first comment's id is 4150787.
146
148
147
149
:param int id_num: (required), comment id, see example above
148
- :returns: :class:`IssueComment <IssueComment>`
150
+ :returns: :class:`IssueComment <github3.issues.comment. IssueComment>`
149
151
"""
150
152
json = None
151
153
if int (id_num ) > 0 : # Might as well check that it's positive
@@ -160,7 +162,7 @@ def create_comment(self, body):
160
162
"""Create a comment on this issue.
161
163
162
164
:param str body: (required), comment body
163
- :returns: :class:`IssueComment <IssueComment>`
165
+ :returns: :class:`IssueComment <github3.issues.comment. IssueComment>`
164
166
"""
165
167
json = None
166
168
if body :
@@ -213,7 +215,8 @@ def iter_comments(self, number=-1):
213
215
"""Iterate over the comments on this issue.
214
216
215
217
: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
217
220
"""
218
221
url = self ._build_url ('comments' , base_url = self ._api )
219
222
return self ._iter (int (number ), url , IssueComment )
@@ -223,7 +226,8 @@ def iter_events(self, number=-1):
223
226
224
227
:param int number: (optional), number of events to return. Default: -1
225
228
returns all events available.
226
- :returns: generator of :class:`IssueEvent <IssueEvent>`\ s
229
+ :returns: generator of
230
+ :class:`IssueEvent <github3.issues.event.IssueEvent>`\ s
227
231
"""
228
232
url = self ._build_url ('events' , base_url = self ._api )
229
233
return self ._iter (int (number ), url , IssueEvent )
@@ -235,6 +239,7 @@ def iter_labels(self, number=-1, etag=None):
235
239
returns all labels applied to this issue.
236
240
:param str etag: (optional), ETag from a previous request to the same
237
241
endpoint
242
+ :returns: generator of :class:`Label <github3.issues.label.Label>`\ s
238
243
"""
239
244
url = self ._build_url ('labels' , base_url = self ._api )
240
245
return self ._iter (int (number ), url , Label , etag = etag )
0 commit comments