From 63d4edf6380ab9196a5849b6666d2034683f6e84 Mon Sep 17 00:00:00 2001 From: nate giraldi Date: Fri, 10 May 2024 04:32:11 -0400 Subject: [PATCH] Fix optional label of ImageData.band_names (#704) --- rio_tiler/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rio_tiler/models.py b/rio_tiler/models.py index 83c21122..b7687c2f 100644 --- a/rio_tiler/models.py +++ b/rio_tiler/models.py @@ -331,7 +331,7 @@ class ImageData: ) crs: Optional[CRS] = attr.ib(default=None, kw_only=True) metadata: Optional[Dict] = attr.ib(factory=dict, kw_only=True) - band_names: List[str] = attr.ib(kw_only=True) + band_names: Optional[List[str]] = attr.ib(kw_only=True) dataset_statistics: Optional[Sequence[Tuple[float, float]]] = attr.ib( default=None, kw_only=True )