mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Improve management of lazy completion
This commit is contained in:
@@ -5,12 +5,12 @@ import PaginatedList
|
||||
from GithubObject import *
|
||||
|
||||
class RepositoryKey( object ):
|
||||
def __init__( self, requester, attributes, lazy ):
|
||||
def __init__( self, requester, attributes, completion ):
|
||||
self.__requester = requester
|
||||
self.__completed = False
|
||||
self.__completed = completion != LazyCompletion
|
||||
self.__initAttributes()
|
||||
self.__useAttributes( attributes )
|
||||
if not lazy:
|
||||
if completion == ImmediateCompletion:
|
||||
self.__complete()
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user