Skip to content

Fix mypyc build #6743

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 1 commit into from
Apr 29, 2019
Merged
Changes from all commits
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
8 changes: 6 additions & 2 deletions mypy/dmypy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,15 @@ def _find_changed(self, sources: List[BuildSource],
def cmd_suggest(self,
function: str,
callsites: bool,
**kwargs: bool) -> Dict[str, object]:
# We'd like to just use **kwargs here and save some duplication but
# mypyc doesn't support it yet...
json: bool,
no_errors: bool,
no_any: bool) -> Dict[str, object]:
"""Suggest a signature for a function."""
if not self.fine_grained_manager:
return {'error': "Command 'suggest' is only valid after a 'check' command"}
engine = SuggestionEngine(self.fine_grained_manager, **kwargs)
engine = SuggestionEngine(self.fine_grained_manager, json, no_errors, no_any)
try:
if callsites:
out = engine.suggest_callsites(function)
Expand Down