Skip to content

Raise error if EventEmitter used with async callback #444

Raise error if EventEmitter used with async callback

Raise error if EventEmitter used with async callback #444

Workflow file for this run

name: Check Types
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Download ffi
run: python -m pip install requests && python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources
- name: Install mypy
run: python -m pip install --upgrade mypy
- name: Install packages
run: python -m pip install pytest ./livekit-api ./livekit-protocol ./livekit-rtc
- name: Check Types
run: python -m mypy --install-type --non-interactive -p 'livekit-protocol' -p 'livekit-api' -p 'livekit-rtc'