8000 Some documentation fixes. · jsullivanlive/github3.py@258ad73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 258ad73

Browse files
committed
Some documentation fixes.
1 parent 9a1961d commit 258ad73

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

github3/api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def login(username, password, token=None):
2727
:type password: str
2828
:param token: (optional), OAuth token
2929
:type token: str
30-
:returns: :class:`GitHub <github.GitHub>`
30+
:returns: :class:`GitHub <github3.github.GitHub>`
3131
"""
3232
g = GitHub()
3333
g.login(username, password, token)
@@ -39,7 +39,7 @@ def gist(id_num):
3939
4040
:param id_num: (required), unique id of the gist
4141
:type id_num: int
42-
:returns: :class:`Gist <gist.Gist>`
42+
:returns: :class:`Gist <github3.gist.Gist>`
4343
"""
4444
return gh.gist(id_num)
4545

@@ -50,7 +50,7 @@ def list_gists(username=None):
5050
:param username: (optional), if provided, get the gists for this user
5151
instead of the authenticated user.
5252
:type username: str
53-
:returns: list of :class:`Gist <gist.Gist>`\ s
53+
:returns: list of :class:`Gist <github3.gist.Gist>`\ s
5454
"""
5555
return gh.list_gists(username)
5656

@@ -75,10 +75,10 @@ def list_following(username):
7575

7676
def list_issues(owner, repository, filter='', state='', labels='', sort='',
7777
direction='', since=''):
78-
"""See :func:`github3.github.GitHub.list_issues()`"""
78+
"""See :func:`github3.github.GitHub.list_issues`"""
7979
issues = []
8080
if owner and repository:
81-
issues = gh.list_issues(owner, repository, filter, state, labels,
81+
issues = gh.list_issues(owner, repository, filter, state, labels,
8282
sort, direction, since)
8383
return issues
8484

@@ -106,7 +106,7 @@ def create_gist(description, files):
106106
dictionaries for content, e.g.
107107
{'spam.txt': {'content': 'File contents ...'}}
108108
:type files: dict
109-
:returns: :class:`Gist <gist.Gist>`
109+
:returns: :class:`Gist <github3.gist.Gist>`
110110
"""
111111
return gh.create_gist(description, files)
112112

@@ -120,15 +120,15 @@ def issue(owner, repository, number):
120120
:type repository: str
121121
:param number: (required), issue number
122122
:type number: int
123-
:returns: :class:`Issue <issue.Issue>`
123+
:returns: :class:`Issue <github3.issue.Issue>`
124124
"""
125125
return gh.issue(owner, repository, number)
126126

127127

128128
def list_events():
129129
"""List all recent public events from GitHub.
130130
131-
:returns: list of :class:`Event <event.Event>`\ s
131+
:returns: list of :class:`Event <github3.event.Event>`\ s
132132
"""
133133
return gh.list_events()
134134

github3/event.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __repr__(self):
3737

3838
@property
3939
def actor(self):
40-
""":class:`User <User>` object representing the actor."""
40+
""":class:`User <github3.user.User>` object representing the actor."""
4141
return self._actor
4242

4343
@property
@@ -57,7 +57,8 @@ def list_types():
5757

5858
@property
5959
def org(self):
60-
""":class:`Organization <Organization>` object if actor was an org."""
60+
""":class:`Organization <github3.org.Organization>` object if actor
61+
was an org."""
6162
return self._org
6263

6364
@property

github3/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ def __repr__(self):
9797

9898
@property
9999
def author(self):
100-
""":class:`User <user.User>` who authored the commit."""
100+
""":class:`User <github3.user.User>` who authored the commit."""
101101
return self._author
102102

103103
@property
104104
def committer(self):
105-
""":class:`User <user.User>` who committed the commit."""
105+
""":class:`User <github3.user.User>` who committed the commit."""
106106
return self._committer
107107

108108
@property

0 commit comments

Comments
 (0)
0