Skip to content

Commit bbf724a

Browse files
committed
Disable annotation-unchecked at windows
1 parent b40c5e9 commit bbf724a

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ jobs:
3030
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3131
- name: Format check with black
3232
run: poetry run black --check .
33-
- name: Typecheck with mypy
34-
run: poetry run mypy -p baidupcs_py --ignore-missing-imports --warn-unreachable --implicit-optional --allow-redefinition --disable-error-code abstract
33+
- name: Typecheck with mypy at Windows
34+
- if: matrix.os == 'windows-latest'
35+
run: poetry run mypy -p baidupcs_py --ignore-missing-imports --warn-unreachable --implicit-optional --allow-redefinition --disable-error-code abstract annotation-unchecked
36+
- name: Typecheck with mypy at Linux
37+
- if: matrix.os == 'ubuntu-latest'
38+
run: poetry run mypy -p baidupcs_py --ignore-missing-imports --warn-unreachable --implicit-optional --allow-redefinition --disable-error-code abstract
3539
- name: Test with pytest
3640
run: |
3741
poetry run python build.py build_ext --inplace

baidupcs_py/common/keyboard.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
# Windows
1111
if os.name == "nt":
12-
# type: ignore
1312
import msvcrt
1413

1514
# Posix (Linux, OS X)

0 commit comments

Comments
 (0)