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

More tweaks to support mypyc #5513

Merged
merged 8 commits into from
Aug 28, 2018
Merged

More tweaks to support mypyc #5513

merged 8 commits into from
Aug 28, 2018

Conversation

msullivan
Copy link
Collaborator

No description provided.

@msullivan msullivan requested a review from ilevkivskyi August 20, 2018 19:23
Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

LGTM, just a tiny suggestion.

return UnionType([self.analyze_type_type_callee(item, context)
for item in item.relevant_items()], item.line)
return UnionType([self.analyze_type_type_callee(x, context)
for x in item.relevant_items()], item.line)
Copy link
Member

Choose a reason for hiding this comment

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

I would use a bit more descriptive name like tp instead of just x.

@@ -191,7 +191,7 @@ def __init__(self) -> None:
self.use_builtins_fixtures = False

# -- experimental options --
self.shadow_file = None # type: Optional[List[Tuple[str, str]]]
self.shadow_file = None # type: Optional[List[List[str]]]
Copy link
Member

Choose a reason for hiding this comment

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

Hm, I am curious why mypy didn't catch any error about this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The field gets populated by argparse, I think?

@msullivan msullivan merged commit 6bcaf40 into master Aug 28, 2018
@msullivan msullivan deleted the mypyc-cleanups branch August 28, 2018 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants