from typing import Optional


def _to_verbose_target(target) -> Optional[dict]:
    """If a condition target is in short-hand notation (list), convert to verbose notation."""
    assert type(target) in [list, dict]
    if type(target) is list:
        assert len(target) in [3, 4]
        if len(target) == 3:
            return {'type': target[0], 'op': target[1], 'value': target[2]}
        elif len(target) == 4:
            return {'type': target[0], 'column': target[1], 'op': target[2], 'value': target[3]}