If the current line is an import line it will return its type (from or straight)

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