def METHOD_NAME(spec: Optional[str]) -> DSLintParsedSpec:
    """Split `spec` to prefix and suffix."""
    wanted, *rest = spec.split(':', 1) if spec else (None, None)
    return (wanted if wanted not in [None, '*'] else None,
            rest[0] if rest else None)