mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Fix doc for raw_data (issue #144)
This commit is contained in:
@@ -25,6 +25,9 @@ NotSet = _NotSetType()
|
||||
|
||||
|
||||
class GithubObject(object):
|
||||
"""
|
||||
Base class for all classes representing objects returned by the API.
|
||||
"""
|
||||
def __init__(self, requester, attributes, completed):
|
||||
self._requester = requester
|
||||
self._initAttributes()
|
||||
|
||||
+1
-1
@@ -285,7 +285,7 @@ class Github(object):
|
||||
|
||||
def create_from_raw_data(self, klass, raw_data):
|
||||
"""
|
||||
Creates an object from raw_data previously obtained by ``myObject.raw_data``
|
||||
Creates an object from raw_data previously obtained by :attr:`github.GithubObject.GithubObject.raw_data`
|
||||
|
||||
:param klass: the class of the object to create
|
||||
:param raw_data: dict
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
The primary class you will instanciate is :class:`github.MainClass.Github`.
|
||||
From its ``get_``, ``create_`` methods, you will obtain instances of all Github objects
|
||||
like :class:`github.NamedUser.NamedUser` or :class:`github.Repository.Repository`.
|
||||
|
||||
All classes inherit from :class:`github.GithubObject.GithubObject`.
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
Reference in New Issue
Block a user