update lint

This commit is contained in:
Matt Tancik committed 2022-05-04 15:56:27 -07:00
1 parent 3507467bf4
commit 5e3daee0ae
1 file changed
+1 -1
+1 -1
View File
@@ -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)