Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
keepingitneil committed Mar 19, 2024
1 parent 82ad9f3 commit c0707f6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
run: python -m pip install ./livekit-api ./livekit-protocol ./livekit-rtc

- name: Check Types
run: python -m mypy --install-types --non-interactive -p 'livekit-protocol' -p 'livekit-api' -p 'livekit-rtc'
run: python -m mypy -p 'livekit-protocol' -p 'livekit-api' -p 'livekit-rtc'
3 changes: 2 additions & 1 deletion livekit-api/tests/test_access_token.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
import datetime

import pytest # type: ignore
from livekit.api import AccessToken, TokenVerifier, VideoGrants

TEST_API_KEY = "myapikey"
Expand Down
7 changes: 4 additions & 3 deletions livekit-api/tests/test_webhook.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pytest
from livekit.api import WebhookReceiver, TokenVerifier, AccessToken
import hashlib
import base64
import hashlib

import pytest # type: ignore
from livekit.api import AccessToken, TokenVerifier, WebhookReceiver

TEST_API_KEY = "myapikey"
TEST_API_SECRET = "thiskeyistotallyunsafe"
Expand Down
2 changes: 1 addition & 1 deletion livekit-protocol/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import os
import pathlib

import setuptools
import setuptools # type: ignore

here = pathlib.Path(__file__).parent.resolve()
about = {}
Expand Down
4 changes: 3 additions & 1 deletion livekit-rtc/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@

import os
import pathlib
from typing import Dict

import setuptools # type: ignore
import setuptools.command.build_py # type: ignore
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel # type: ignore
from wheel.bdist_wheel import get_platform # type: ignore

here = pathlib.Path(__file__).parent.resolve()
about = {}
about: Dict[any, any] = {}
with open(os.path.join(here, "livekit", "rtc", "version.py"), "r") as f:
exec(f.read(), about)

Expand Down

0 comments on commit c0707f6

Please sign in to comment.