Skip to content

Commit

Permalink
more dunder method work
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonvt committed Apr 26, 2023
1 parent 0957278 commit e6958a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cognite/client/data_classes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit e6958a7

Please sign in to comment.