mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
On the way to remove modifyAttributes from ElementCreatable and ListGetable
This commit is contained in:
@@ -43,7 +43,8 @@ class ElementCreatable( ListCapacity ):
|
||||
|
||||
def __execute( self, obj, *args, **kwds ):
|
||||
data = self.__argumentsChecker.check( args, kwds )
|
||||
return self.typePolicy.createLazy( obj, self.__modifyAttributes( obj, obj._github._dataRequest( "POST", obj._baseUrl + "/" + self.attributeName, None, data ) ) )
|
||||
attributes = obj._github._dataRequest( "POST", obj._baseUrl + "/" + self.attributeName, None, data )
|
||||
return self.typePolicy.createLazy( obj, self.__modifyAttributes( obj, attributes ) )
|
||||
|
||||
class ElementGetable( ListCapacity ):
|
||||
def __init__( self, mandatoryParameters, optionalParameters, objReferenceName = None ):
|
||||
|
||||
Reference in New Issue
Block a user