code: def mypy_run(args):
      
      logger.log_cmd(["mypy"] + args)
      try:
          stdout, stderr, exit_code = run(args)
      except BaseException:
          traceback.print_exc()
      else:
          for line in stdout.splitlines():
              yield line, False
          for line in stderr.splitlines():
              yield line, True
docs: Runs mypy with given arguments and shows the result.