code: def set_mypy_args(self, mypy_args=None):
          
          if mypy_args is None:
              self.mypy_args = None
          else:
              self.mypy_errs = []
              self.mypy_args = list(mypy_args)
  
              if not any(arg.startswith("--python-version") for arg in mypy_args):
                  self.mypy_args += [
                      "--python-version",
                      ".".join(str(v) for v in get_target_info_len2(self.comp.target, mode="nearest")),
                  ]
  
              if logger.verbose:
                  for arg in verbose_mypy_args:
                      if arg not in self.mypy_args:
                          self.mypy_args.append(arg)
  
              logger.log("MyPy args:", self.mypy_args)
docs: Set MyPy arguments.