@@ -48,25 +48,25 @@ class ApplicationBranch(Component):
4848 Abstraction of the SonarQube "application branch" concept
4949 """
5050
51- CACHE = cache .Cache () # :type: cache.Cache
52- API = { # :type: dict[str, str]
53- c .CREATE : "applications/create_branch" , # :type: str
54- c .GET : "applications/show" , # :type: str
55- c .UPDATE : "applications/update_branch" , # :type: str
56- c .DELETE : "applications/delete_branch" , # :type: str
51+ CACHE = cache .Cache () # :type: cache.Cache
52+ API = { # :type: dict[str, str]
53+ c .CREATE : "applications/create_branch" , # :type: str
54+ c .GET : "applications/show" , # :type: str
55+ c .UPDATE : "applications/update_branch" , # :type: str
56+ c .DELETE : "applications/delete_branch" , # :type: str
5757 }
5858
5959 def __init__ (
6060 self , app : Application , name : str , project_branches : list [Branch ], is_main : bool = False , branch_data : Optional [types .ApiPayload ] = None
6161 ) -> None :
6262 """Don't use this directly, go through the class methods to create Objects"""
6363 super ().__init__ (endpoint = app .endpoint , key = f"{ app .key } BRANCH { name } " )
64- self .concerned_object = app # :type: Application
65- self .name = name # :type: str
66- self .sq_json = branch_data # :type: types.ApiPayload
67- self ._is_main = is_main # :type: bool
68- self ._project_branches = project_branches # :type: list[Branch]
69- self ._last_analysis = None # :type: Optional[datetime]
64+ self .concerned_object = app # :type: Application
65+ self .name = name # :type: str
66+ self .sq_json = branch_data # :type: types.ApiPayload
67+ self ._is_main = is_main # :type: bool
68+ self ._project_branches = project_branches # :type: list[Branch]
69+ self ._last_analysis = None # :type: Optional[datetime]
7070 log .debug ("Created %s with uuid %d id %x" , str (self ), hash (self ), id (self ))
7171 ApplicationBranch .CACHE .put (self )
7272
0 commit comments