Skip to content

Commit 5421475

Browse files
committed
Fixing the ruff formatting
1 parent a617f46 commit 5421475

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

livekit-api/livekit/api/access_token.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ class SIPGrants:
7575
# make outbound calls
7676
call: bool = False
7777

78+
7879
@dataclasses.dataclass
7980
class InferenceGrants:
8081
# perform inference
8182
perform: bool = False
8283

84+
8385
@dataclasses.dataclass
8486
class Claims:
8587
identity: str = ""
@@ -140,7 +142,7 @@ def with_grants(self, grants: VideoGrants) -> "AccessToken":
140142
def with_sip_grants(self, grants: SIPGrants) -> "AccessToken":
141143
self.claims.sip = grants
142144
return self
143-
145+
144146
def with_inference_grants(self, grants: InferenceGrants) -> "AccessToken":
145147
self.claims.inference = grants
146148
return self
@@ -236,7 +238,9 @@ def verify(self, token: str, *, verify_signature: bool = True) -> Claims:
236238

237239
inference_dict = claims.get("inference", dict())
238240
inference_dict = {camel_to_snake(k): v for k, v in inference_dict.items()}
239-
inference_dict = {k: v for k, v in inference_dict.items() if k in InferenceGrants.__dataclass_fields__}
241+
inference_dict = {
242+
k: v for k, v in inference_dict.items() if k in InferenceGrants.__dataclass_fields__
243+
}
240244
inference = InferenceGrants(**inference_dict)
241245

242246
grant_claims = Claims(

0 commit comments

Comments
 (0)