10000 Simplify and tighten type aliases by ilevkivskyi · Pull Request #3524 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Simplify and tighten type aliases #3524

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 18 commits into from
Jul 7, 2017
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
Next Next commit
Fix typo
  • Loading branch information
ilevkivskyi committed Jun 22, 2017
commit b2212dd51889b251a438cca349a1834b652bb38f
2 changes: 1 addition & 1 deletion mypy/fixup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def visit_symbol_table(self, symtab: SymbolTable) -> None:
value.type_override = stnode.type_override
if not value.type_override and self.quick_and_dirty:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this -- add a comment. Is there a test case that tests this change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I am also not sure it is needed. It was an attempt to fix #3355, but now I have a better idea. I removed this for now, and will make a separate PR later.

value.type_override = Instance(stale_info(), [])
value.alias_tvars = stnode.alias_tvras or []
value.alias_tvars = stnode.alias_tvars or []
elif not self.quick_and_dirty:
assert stnode is not None, "Could not find cross-ref %s" % (cross_ref,)
else:
Expand Down
0