Skip to content

Commit

Permalink
Add future annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Jun 22, 2024
1 parent 3410348 commit 658f392
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion livekit-api/livekit/api/_service.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import __annotations__

Check failure on line 1 in livekit-api/livekit/api/_service.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F407)

livekit-api/livekit/api/_service.py:1:24: F407 Future feature `__annotations__` is not defined
from typing import Dict
import aiohttp
from abc import ABC
Expand All @@ -16,7 +17,7 @@ def __init__(
self.api_secret = api_secret

def _auth_header(
self, grants: VideoGrants, sip: SIPGrants = None
self, grants: VideoGrants, sip: SIPGrants | None = None
) -> Dict[str, str]:
tok = AccessToken(self.api_key, self.api_secret).with_grants(grants)
if sip is not None:
Expand Down

0 comments on commit 658f392

Please sign in to comment.