@@ -27,7 +27,7 @@ def login(username, password, token=None):
27
27
:type password: str
28
28
:param token: (optional), OAuth token
29
29
:type token: str
30
- :returns: :class:`GitHub <github.GitHub>`
30
+ :returns: :class:`GitHub <github3. github.GitHub>`
31
31
"""
32
32
g = GitHub ()
33
33
g .login (username , password , token )
@@ -39,7 +39,7 @@ def gist(id_num):
39
39
40
40
:param id_num: (required), unique id of the gist
41
41
:type id_num: int
42
- :returns: :class:`Gist <gist.Gist>`
42
+ :returns: :class:`Gist <github3. gist.Gist>`
43
43
"""
44
44
return gh .gist (id_num )
45
45
@@ -50,7 +50,7 @@ def list_gists(username=None):
50
50
:param username: (optional), if provided, get the gists for this user
51
51
instead of the authenticated user.
52
52
:type username: str
53
- :returns: list of :class:`Gist <gist.Gist>`\ s
53
+ :returns: list of :class:`Gist <github3. gist.Gist>`\ s
54
54
"""
55
55
return gh .list_gists (username )
56
56
@@ -75,10 +75,10 @@ def list_following(username):
75
75
76
76
def list_issues (owner , repository , filter = '' , state = '' , labels = '' , sort = '' ,
77
77
direction = '' , since = '' ):
78
- """See :func:`github3.github.GitHub.list_issues() `"""
78
+ """See :func:`github3.github.GitHub.list_issues`"""
79
79
issues = []
80
80
if owner and repository :
81
- issues = gh .list_issues (owner , repository , filter , state , labels ,
81
+ issues = gh .list_issues (owner , repository , filter , state , labels ,
82
82
sort , direction , since )
83
83
return issues
84
84
@@ -106,7 +106,7 @@ def create_gist(description, files):
106
106
dictionaries for content, e.g.
107
107
{'spam.txt': {'content': 'File contents ...'}}
108
108
:type files: dict
109
- :returns: :class:`Gist <gist.Gist>`
109
+ :returns: :class:`Gist <github3. gist.Gist>`
110
110
"""
111
111
return gh .create_gist (description , files )
112
112
@@ -120,15 +120,15 @@ def issue(owner, repository, number):
120
120
:type repository: str
121
121
:param number: (required), issue number
122
122
:type number: int
123
- :returns: :class:`Issue <issue.Issue>`
123
+ :returns: :class:`Issue <github3. issue.Issue>`
124
124
"""
125
125
return gh .issue (owner , repository , number )
126
126
127
127
128
128
def list_events ():
129
129
"""List all recent public events from GitHub.
130
130
131
- :returns: list of :class:`Event <event.Event>`\ s
131
+ :returns: list of :class:`Event <github3. event.Event>`\ s
132
132
"""
133
133
return gh .list_events ()
134
134
0 commit comments