Skip to content

Commit 3c3fe6b

Browse files
committed
mypy(chore[config]): drop docs/_ext alias from mypy path
why: The docs widgets no longer need a top-level alias, and keeping one reintroduces duplicate module identities. what: - remove docs/_ext from mypy_path - keep the existing checked roots and docs exclusion unchanged
1 parent f302361 commit 3c3fe6b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ files = [
116116
"src",
117117
"tests",
118118
]
119-
# ``docs/_ext`` is not in ``files`` to avoid double-naming the widgets package
120-
# (mypy would see it as both ``widgets`` and ``docs._ext.widgets``); the path
121-
# entry alone lets imports like ``from widgets import ...`` in tests resolve.
122-
# ``exclude`` is also required so that ``uv run mypy .`` in CI -- which
123-
# traverses every path under the current dir -- doesn't rediscover the same
124-
# files under their ``docs._ext.`` prefix and error "Source file found twice".
125-
mypy_path = ["docs/_ext"]
126119
exclude = ["^docs/"]
127120

128121
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)