-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
find_sources: find build sources recursively
Fixes #8548 This is important to fix because it's a really common source of surprising false negatives. I also lay some groundwork for supporting passing in namespace packages on the command line. I wanted to make things work in this PR itself, but it looks like we have some __init__.py assumptions somewhere in build / cache that I'll need to leave for another day (I was surprised to discover fscache._fake_init and secret side effects that the innocuous looking get_init_file seems to have). The approach towards namespace packages that this anticipates is that if you pass in files to mypy and you want mypy to understand your namespace packages, you'll need to specify explicit package roots. We also make many fewer calls to crawl functions, since we just pass around what we need.
- Loading branch information
hauntsaninja
committed
Oct 19, 2020
1 parent
f5f5485
commit f1832fe
Showing
2 changed files
with
93 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters