Skip to content

Commit a7e0bf2

Browse files
committed
fix: Remove types-all from mypy pre-commit hook
Replace types-all with specific type stubs (types-PyYAML, numpy) to avoid dependency resolution errors. The types-all meta-package has issues with types-pkg-resources which no longer exists. Since we use --ignore-missing-imports, we only need type stubs for core dependencies that we actually use in type annotations.
1 parent 7ac2c39 commit a7e0bf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ repos:
4444
hooks:
4545
- id: mypy
4646
language_version: python3
47-
additional_dependencies: [types-all]
47+
additional_dependencies: [types-PyYAML, numpy]
4848
args: [--ignore-missing-imports, --check-untyped-defs]
4949
exclude: ^(tests/|legacy/|.*\.ipynb)
5050

0 commit comments

Comments
 (0)