Skip to content

Commit b0c59aa

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 857abeb commit b0c59aa

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
@@ -139,13 +139,6 @@ files = [
139139
"src",
140140
"tests",
141141
]
142-
# ``docs/_ext`` is not in ``files`` to avoid double-naming the widgets package
143-
# (mypy would see it as both ``widgets`` and ``docs._ext.widgets``); the path
144-
# entry alone lets imports like ``from widgets import ...`` in tests resolve.
145-
# ``exclude`` is also required so that ``uv run mypy .`` in CI -- which
146-
# traverses every path under the current dir -- doesn't rediscover the same
147-
# files under their ``docs._ext.`` prefix and error "Source file found twice".
148-
mypy_path = ["docs/_ext"]
149142
exclude = ["^docs/"]
150143

151144
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)