mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Remove ListOfReferences
This commit is contained in:
@@ -85,15 +85,3 @@ class ListOfObjects:
|
||||
def apply( self, cls ):
|
||||
for capacity in self.__capacities:
|
||||
capacity.apply( self, cls )
|
||||
|
||||
class ListOfReferences( ListOfObjects ):
|
||||
def __init__( self, attributeName, type, addable = False, removable = False, hasable = False, getParameters = [] ):
|
||||
capacities = list()
|
||||
capacities.append( ListGetable( [], getParameters ) )
|
||||
if addable:
|
||||
capacities.append( ElementAddable() )
|
||||
if removable:
|
||||
capacities.append( ElementRemovable() )
|
||||
if hasable:
|
||||
capacities.append( ElementHasable() )
|
||||
ListOfObjects.__init__( self, attributeName, type, *capacities )
|
||||
|
||||
Reference in New Issue
Block a user