From be1cb18ea28222fca384a5459a024b7e9af5cadb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 30 Jan 2023 18:08:37 +0100 Subject: Merging upstream version 10.5.10. Signed-off-by: Daniel Baumann --- sqlglot/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlglot/helper.py') diff --git a/sqlglot/helper.py b/sqlglot/helper.py index 5a0f2ac..68e0383 100644 --- a/sqlglot/helper.py +++ b/sqlglot/helper.py @@ -332,7 +332,7 @@ def is_iterable(value: t.Any) -> bool: return hasattr(value, "__iter__") and not isinstance(value, (str, bytes)) -def flatten(values: t.Iterable[t.Iterable[t.Any] | t.Any]) -> t.Generator[t.Any, None, None]: +def flatten(values: t.Iterable[t.Iterable[t.Any] | t.Any]) -> t.Iterator[t.Any]: """ Flattens an iterable that can contain both iterable and non-iterable elements. Objects of type `str` and `bytes` are not regarded as iterables. -- cgit v1.2.3