8000 Clarify the type of the 'owner' attribute on Repository objects (#979) · silvrwolfboy/github3.py@8bda693 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bda693

Browse files
kpflemingsigmavirus24
authored andcommitted
Clarify the type of the 'owner' attribute on Repository objects (sigmavirus24#979)
* Clarify the type of the 'owner' attribute on Repository objects Throughout the github3.py API, 'owner' is generally a string object, but the 'owner' attribute of Repository objects is not, it's a ShortUser object. This patch updates the documentation to explicitly indicate that so that developers won't be surprised by the type of the attribute. Signed-off-by: Kevin P. Fleming <kpfleming@bloomberg.net> * Add AUTHORS entry as requested Signed-off-by: Kevin P. Fleming <kpfleming@bloomberg.net> Co-authored-by: Ian Stapleton Cordasco <graffatcolmingov@gmail.com>
1 parent 3cb774c commit 8bda693

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

AUTHORS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,5 @@ Contributors
190190
- Erico Fusco (@ericofusco)
191191

192192
- Ben Jefferies (@benjefferies)
193+
194+
- Kevin P. Fleming (@kpfleming)

src/github3/repos/repo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3242,7 +3242,8 @@ class ShortRepository(_Repository):
32423242
32433243
.. attribute:: owner
32443244
3245-
The owner of the repository, e.g., ``sigmavirus24``.
3245+
A :class:`~github3.users.ShortUser` object representing the owner of
3246+
the repository.
32463247
32473248
.. attribute:: private
32483249

0 commit comments

Comments
 (0)
0