@@ -162,7 +162,9 @@ async def get_tenant(
162162 self , tenant_id : Optional [str ], user_context : Dict [str , Any ]
163163 ) -> Optional [GetTenantOkResult ]:
164164 res = await self .querier .send_get_request (
165- NormalisedURLPath (f"{ tenant_id or DEFAULT_TENANT_ID } /recipe/multitenancy/tenant" ),
165+ NormalisedURLPath (
166+ f"{ tenant_id or DEFAULT_TENANT_ID } /recipe/multitenancy/tenant"
167+ ),
166168 )
167169
168170 if res ["status" ] == "TENANT_NOT_FOUND_ERROR" :
@@ -210,7 +212,9 @@ async def create_or_update_third_party_config(
210212 user_context : Dict [str , Any ],
211213 ) -> CreateOrUpdateThirdPartyConfigOkResult :
212214 response = await self .querier .send_put_request (
213- NormalisedURLPath (f"{ tenant_id or DEFAULT_TENANT_ID } /recipe/multitenancy/config/thirdparty" ),
215+ NormalisedURLPath (
216+ f"{ tenant_id or DEFAULT_TENANT_ID } /recipe/multitenancy/config/thirdparty"
217+ ),
214218 {
215219 "config" : config .to_json (),
216220 "skipValidation" : skip_validation is True ,
@@ -250,7 +254,9 @@ async def associate_user_to_tenant(
250254 AssociateUserToTenantThirdPartyUserAlreadyExistsError ,
251255 ]:
252256 response : Dict [str , Any ] = await self .querier .send_post_request (
253- NormalisedURLPath (f"{ tenant_id or DEFAULT_TENANT_ID } /recipe/multitenancy/tenant/user" ),
257+ NormalisedURLPath (
258+ f"{ tenant_id or DEFAULT_TENANT_ID } /recipe/multitenancy/tenant/user"
259+ ),
254260 {
255261 "userId" : user_id ,
256262 },
@@ -281,7 +287,9 @@ async def dissociate_user_from_tenant(
281287 self , tenant_id : Optional [str ], user_id : str , user_context : Dict [str , Any ]
282288 ) -> DisassociateUserFromTenantOkResult :
283289 response = await self .querier .send_post_request (
284- NormalisedURLPath (f"{ tenant_id or DEFAULT_TENANT_ID } /recipe/multitenancy/tenant/user/remove" ),
290+ NormalisedURLPath (
291+ f"{ tenant_id or DEFAULT_TENANT_ID } /recipe/multitenancy/tenant/user/remove"
292+ ),
285293 {
286294 "userId" : user_id ,
287295 },
0 commit comments