Skip to content

Commit 2fd37b4

Browse files
Merge pull request #96 from randileeharper/fix/mypy-conftest-duplicate-modules
Add tests/__init__.py to fix mypy duplicate-module error
2 parents d9d99f5 + 453f04a commit 2fd37b4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Marks ``tests`` as a package so tooling (mypy) resolves ``conftest`` under a
2+
# single module name (``tests.conftest``) rather than both ``conftest`` and
3+
# ``tests.conftest``. This also matches the existing
4+
# ``from tests.conftest import ...`` imports in the suite. See issue #82.

0 commit comments

Comments
 (0)