code: def _import_type(line: str) -> Optional[str]:
          
          if "isort:skip" in line or "NOQA" in line:
              return None
          elif line.startswith('import '):
              return "straight"
          elif line.startswith('from '):
              return "from"
docs: If the current line is an import line it will return its type (from or straight)