Reduce dashboard bootstrap payload (#9284)

This commit is contained in:
Erik Ritter
2020-03-13 12:18:22 -07:00
committed by GitHub
parent e9b0095754
commit f80fadff0e
6 changed files with 140 additions and 4 deletions

View File

@@ -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.