8000 mypy ofc <3 · cognitedata/cognite-sdk-python@24b9b42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24b9b42

Browse files
committed
mypy ofc <3
1 parent ba6ab80 commit 24b9b42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cognite/client/_api/datapoints.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def _get_result_with_exception_handling(
275275
except CancelledError:
276276
return None
277277
except CogniteAPIError as e:
278-
future._exception = None # break ref cycle
278+
# Break ref cycle with the exception:
279+
future._exception = None # type: ignore [attr-defined]
279280
if not (e.code == 400 and e.missing and ts_task.query.ignore_unknown_ids):
280281
# TODO: We only notify the user one the first occurrence of a missing time series, and we
281282
# should probably change that (add note to exception or await all ts have been checked)

0 commit comments

Comments
 (0)
0