Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stubgen : Adding a print message on ignoring module <path> #11476

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Added a print message which says 'Ignoring Module <path>' inside 'is_…
…blacklisted_path' function
  • Loading branch information
noob8boi committed Nov 5, 2021
commit 1411d036b06eaad1345c90ae2cd11ed03264ea2c
1 change: 1 addition & 0 deletions mypy/stubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 1276,7 @@ def remove_blacklisted_modules(modules: List[StubSource]) -> List[StubSource]:


def is_blacklisted_path(path: str) -> bool:
print(f"Ignoring module {path}")
return any(substr in (normalize_path_separators(path) '\n')
for substr in BLACKLIST)

Expand Down