From 5e3daee0aec7ac96dd919c04f3b66ed9f082877c Mon Sep 17 00:00:00 2001 From: Matt Tancik Date: Wed, 4 May 2022 15:56:27 -0700 Subject: [PATCH] update lint --- mattport/structures/colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mattport/structures/colors.py b/mattport/structures/colors.py index 3e039aa95..343342c68 100644 --- a/mattport/structures/colors.py +++ b/mattport/structures/colors.py @@ -32,7 +32,7 @@ def get_color(color: Union[str, list, ListConfig]) -> TensorType[3]: if color not in COLORS_DICT: raise ValueError(f"{color} is not a valid preset color") return COLORS_DICT[color] - if isinstance(color, list) or isinstance(color, ListConfig): + if isinstance(color, (list, ListConfig)): if len(color) != 3: raise ValueError(f"Color should be 3 values (RGB) instead got {color}") return torch.tensor(color)