-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
After having install dependencies (using PR #218), trying to run make
fails on errors from mypy
:
$ poetry run make
ruff format kalamine
7 files reformatted, 9 files left unchanged
ruff check --fix kalamine
All checks passed!
ruff format --check kalamine
16 files already formatted
ruff check kalamine
All checks passed!
mypy kalamine
kalamine/utils.py:6: error: Library stubs not installed for "yaml" [import-untyped]
kalamine/layout.py:8: error: Cannot find implementation or library stub for module named "click" [import-not-found]
kalamine/layout.py:9: error: Cannot find implementation or library stub for module named "tomli" [import-not-found]
kalamine/layout.py:10: error: Library stubs not installed for "yaml" [import-untyped]
kalamine/layout.py:10: note: Hint: "python3 -m pip install types-PyYAML"
kalamine/layout.py:10: note: (or run "mypy --install-types" to install all missing stub packages)
kalamine/xkb_manager.py:389: error: Argument 1 to "get_rules_variant_list" has incompatible type "ElementTree[Element[str]]"; expected "ElementTree[Element[str] | None]" [arg-type]
kalamine/server.py:8: error: Cannot find implementation or library stub for module named "click" [import-not-found]
kalamine/server.py:196: error: Argument 1 to "tostring" has incompatible type "Element[str] | None"; expected "Element[str]" [arg-type]
kalamine/cli_xkb.py:10: error: Cannot find implementation or library stub for module named "click" [import-not-found]
kalamine/cli_msklc.py:8: error: Cannot find implementation or library stub for module named "click" [import-not-found]
kalamine/cli.py:8: error: Cannot find implementation or library stub for module named "click" [import-not-found]
kalamine/cli.py:8: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 10 errors in 7 files (checked 16 source files)
make: *** [lint] Error 1
Metadata
Metadata
Assignees
Labels
No labels