Skip to content

Commit d387906

Browse files
authored
Fix mypyc (#6743)
Which doesn't support **kwargs
1 parent 5dde0ae commit d387906

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mypy/dmypy_server.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,11 +517,15 @@ def _find_changed(self, sources: List[BuildSource],
517517
def cmd_suggest(self,
518518
function: str,
519519
callsites: bool,
520-
**kwargs: bool) -> Dict[str, object]:
520+
# We'd like to just use **kwargs here and save some duplication but
521+
# mypyc doesn't support it yet...
522+
json: bool,
523+
no_errors: bool,
524+
no_any: bool) -> Dict[str, object]:
521525
"""Suggest a signature for a function."""
522526
if not self.fine_grained_manager:
523527
return {'error': "Command 'suggest' is only valid after a 'check' command"}
524-
engine = SuggestionEngine(self.fine_grained_manager, **kwargs)
528+
engine = SuggestionEngine(self.fine_grained_manager, json, no_errors, no_any)
525529
try:
526530
if callsites:
527531
out = engine.suggest_callsites(function)

0 commit comments

Comments
 (0)