Skip to content

Commit 051c8f3

Browse files
duke9509ilevkivskyi
authored andcommitted
Add note about relative file paths in import discovery (#6676)
Resolves #6660
1 parent ebd0479 commit 051c8f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/running_mypy.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ This is computed from the following items:
376376

377377
For sources given on the command line, the path is adjusted by crawling
378378
up from the given file or package to the nearest directory that does not
379-
contain an ``__init__.py`` or ``__init__.pyi`` file.
379+
contain an ``__init__.py`` or ``__init__.pyi`` file. If the given path
380+
is relative, it will only crawl as far as the current working directory.
380381

381382
Second, mypy searches for stub files in addition to regular Python files
382383
and packages.

0 commit comments

Comments
 (0)