8000 New semantic analyzer: store import deps generated during analysis by JukkaL · Pull Request #6582 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

New semantic analyzer: store import deps generated during analysis #6582

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

Merged
merged 3 commits into from
Apr 1, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't lower priority
  • Loading branch information
JukkaL committed Apr 1, 2019
commit f12b038df570caaf39c4e8418817fb555aa112cc
4 changes: 3 additions & 1 deletion mypy/newsemanal/semanal_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ def semantic_analyze_target(target: str,
infer_decorator_signature_if_simple(node, analyzer)
for dep in analyzer.imports:
state.dependencies.append(dep)
state.priorities[dep] = mypy.build.PRI_LOW
priority = mypy.build.PRI_LOW
if priority <= state.priorities.get(dep, priority):
state.priorities[dep] = priority
if analyzer.deferred:
return [target], analyzer.incomplete, analyzer.progress
else:
Expand Down
0