from typing import Tuple
from typing import List


def _parse_notes(raw_notes: str) -> Tuple[List[str], List[str]]:
    """Parse raw notes into notes list and modules list."""
    modules: List[str] = []
    notes: List[str] = []
    for note in raw_notes.split('<br>'):
        if note.startswith(('File: ', 'Module: ', 'Modules: ')):
            start = note.index(': ') + 2
            modules = [
                m.strip('`') for m
                in note[start:].split(', ')
            ]
            continue
        if note == '-':
            continue
        notes.append(note)

    return notes, modules