MCPcopy Create free account
hub / github.com/python/mypy / do_suggest

Function do_suggest

mypy/dmypy/client.py:506–524  ·  view source on GitHub ↗

Ask the daemon for a suggested signature. This just prints whatever the daemon reports as output. For now it may be closer to a list of call sites.

(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

504
505@action(suggest_parser)
506def do_suggest(args: argparse.Namespace) -> None:
507 """Ask the daemon for a suggested signature.
508
509 This just prints whatever the daemon reports as output.
510 For now it may be closer to a list of call sites.
511 """
512 response = request(
513 args.status_file,
514 "suggest",
515 function=args.function,
516 json=args.json,
517 callsites=args.callsites,
518 no_errors=args.no_errors,
519 no_any=args.no_any,
520 flex_any=args.flex_any,
521 use_fixme=args.use_fixme,
522 max_guesses=args.max_guesses,
523 )
524 check_output(response, verbose=False, junit_xml=None, perf_stats_file=None)
525
526
527@action(inspect_parser)

Callers

nothing calls this directly

Calls 2

requestFunction · 0.85
check_outputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…