From e6958a728f67d82206504cb2b269e691482fdae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20V=2E=20Treider?= Date: Wed, 26 Apr 2023 13:50:50 +0200 Subject: [PATCH] more dunder method work --- cognite/client/data_classes/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognite/client/data_classes/_base.py b/cognite/client/data_classes/_base.py index 0f1616d428..560677e3dc 100644 --- a/cognite/client/data_classes/_base.py +++ b/cognite/client/data_classes/_base.py @@ -223,7 +223,7 @@ def __delitem__(self, i: SupportsIndex | slice) -> None: def __iadd__(self: T_CogniteBaseList, other: Iterable[Any]) -> T_CogniteBaseList: self.extend(other) # type: ignore [arg-type] - return cast(T_CogniteBaseList, self) + return self def __mul__(self, n: int) -> NoReturn: """Cognite resource lists do not support ops that introduce duplicates, so __[,r,i]mul__ is not supported"""