From 9e263847bf910abaf903a7d3cf1e2947b86b0808 Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 24 Sep 2024 12:00:25 +0200 Subject: [PATCH] expression: ignore type in group assignment --- linopy/expressions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linopy/expressions.py b/linopy/expressions.py index 4a7a03db..49a7240d 100644 --- a/linopy/expressions.py +++ b/linopy/expressions.py @@ -156,7 +156,7 @@ def groupby(self) -> xarray.core.groupby.DatasetGroupBy: group_name = self.group.name or "group" group = DataArray(self.group, name=group_name) else: - group = self.group + group = self.group # type: ignore return self.data.groupby(group=group, **self.kwargs)