-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Verify indirect deps reachable on incremental run #20735
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
Changes from all commits
8ae790f
52622da
be0111d
68c3008
56b4126
eb61baa
3496f52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,6 @@ | |
| from itertools import groupby | ||
| from typing import TYPE_CHECKING, Final, TypeAlias as _TypeAlias | ||
|
|
||
| import mypy.build | ||
| import mypy.state | ||
| from mypy.checker import FineGrainedDeferredNode | ||
| from mypy.errors import Errors | ||
|
|
@@ -416,11 +415,6 @@ def semantic_analyze_target( | |
| ) | ||
| if isinstance(node, Decorator): | ||
| infer_decorator_signature_if_simple(node, analyzer) | ||
| for dep in analyzer.imports: | ||
| state.add_dependency(dep) | ||
| priority = mypy.build.PRI_LOW | ||
| if priority <= state.priorities.get(dep, priority): | ||
| state.priorities[dep] = priority | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this change?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my reply above #20735 (comment). It is a hack that is not needed anymore, it is a (very) bad idea to modify loaded graph after the initial load. |
||
|
|
||
| # Clear out some stale data to avoid memory leaks and astmerge | ||
| # validity check confusion | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
sorted(all_direct_deps)to ensure consistent ordering?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have
sort_keys=Trueby default injson_dumps(), so no need to order them twice.