Skip to content

Commit 0527bae

Browse files
committed
Fix a mypy error caused by ambiguous import paths
The `--explicit-package-bases` is one of two solutions. The other is to add `__init__.py` files to various directories, but longer term it might be better to change the repo directory structure.
1 parent 2b70986 commit 0527bae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ repos:
2323
- id: mypy
2424
exclude: /tests/
2525
# --strict
26-
args: [--no-strict-optional, --ignore-missing-imports, --implicit-reexport]
26+
args: [
27+
--no-strict-optional,
28+
--ignore-missing-imports,
29+
--implicit-reexport,
30+
--explicit-package-bases,
31+
]
2732
additional_dependencies: [
2833
"types-attrs",
2934
"types-requests"

0 commit comments

Comments
 (0)