mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Test non-lazy construction
This commit is contained in:
@@ -40,6 +40,10 @@ def GithubObject( className, *attributePolicies ):
|
||||
self._github = github
|
||||
self.__attributes = dict()
|
||||
self.__updateAttributes( attributes )
|
||||
if not lazy:
|
||||
for attributeName in attributeDefinitions:
|
||||
if attributeName not in self.__attributes:
|
||||
self.__fetchAttribute( attributeName )
|
||||
|
||||
def __getattr__( self, attributeName ):
|
||||
if attributeName in attributeDefinitions:
|
||||
|
||||
Reference in New Issue
Block a user