Skip to content

Commit

Permalink
Fix: small overload fix for ensure list taking None (#4248)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking authored Oct 15, 2024
1 parent 0051725 commit e6567ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sqlglot/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def seq_get(seq: t.Sequence[T], index: int) -> t.Optional[T]:
def ensure_list(value: t.Collection[T]) -> t.List[T]: ...


@t.overload
def ensure_list(value: None) -> t.List: ...


@t.overload
def ensure_list(value: T) -> t.List[T]: ...

Expand Down

0 comments on commit e6567ae

Please sign in to comment.