mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Reduce dashboard bootstrap payload (#9284)
This commit is contained in:
@@ -1211,6 +1211,17 @@ def split(
|
||||
yield s[i:]
|
||||
|
||||
|
||||
def get_iterable(x: Any) -> List:
|
||||
"""
|
||||
Get an iterable (list) representation of the object.
|
||||
|
||||
:param x: The object
|
||||
:returns: An iterable representation
|
||||
"""
|
||||
|
||||
return x if isinstance(x, list) else [x]
|
||||
|
||||
|
||||
class TimeRangeEndpoint(str, Enum):
|
||||
"""
|
||||
The time range endpoint types which represent inclusive, exclusive, or unknown.
|
||||
|
||||
Reference in New Issue
Block a user