@@ -76,7 +76,7 @@ class AppManager(EntityManager):
7676 ]
7777
7878 def __init__ (self , target_endpoint : str , client : "CloudFoundryClient" ):
79- super (AppManager , self ).__init__ (
79+ super ().__init__ (
8080 target_endpoint , client , "/v2/apps" , lambda pairs : Application (target_endpoint , client , pairs )
8181 )
8282
@@ -111,7 +111,7 @@ def start(
111111 timeout : float | None = 300.0 ,
112112 asynchronous : bool | None = False ,
113113 ) -> Application :
114- result = super (AppManager , self )._update (application_guid , dict (state = "STARTED" ))
114+ result = super ()._update (application_guid , dict (state = "STARTED" ))
115115 if asynchronous :
116116 return result
117117 else :
@@ -126,7 +126,7 @@ def stop(
126126 timeout : float | None = 500.0 ,
127127 asynchronous : bool | None = False ,
128128 ) -> Application :
129- result = super (AppManager , self )._update (application_guid , dict (state = "STOPPED" ))
129+ result = super ()._update (application_guid , dict (state = "STOPPED" ))
130130 if asynchronous :
131131 return result
132132 else :
@@ -143,11 +143,11 @@ def create(self, **kwargs) -> Application:
143143 if kwargs .get ("name" ) is None or kwargs .get ("space_guid" ) is None :
144144 raise AssertionError ("Please provide a name and a space_guid" )
145145 request = AppManager ._generate_application_update_request (** kwargs )
146- return super (AppManager , self )._create (request )
146+ return super ()._create (request )
147147
148148 def update (self , application_guid : str , ** kwargs ) -> Application :
149149 request = AppManager ._generate_application_update_request (** kwargs )
150- return super (AppManager , self )._update (application_guid , request )
150+ return super ()._update (application_guid , request )
151151
152152 def remove (self , application_guid : str ):
153153 super (AppManager , self )._remove (application_guid )
0 commit comments