An item of self._data is made of the old JSON object, the new JSON object
and the error message.
Source code in src/fractal_task_tools/_deepdiff.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 | class Errors:
"""
An item of `self._data` is made of the old JSON object, the new JSON object
and the error message.
"""
_data: list[tuple[JSONType, JSONType, str]]
def __init__(self):
self._data = []
def reset_state(self):
self._data = []
def append(self: Self, item: tuple[JSONType, JSONType, str]):
self._data.append(item)
@property
def tot_errors(self: Self) -> int:
return len(self._data)
@property
def messages_str(self: Self) -> str:
return str([item[2] for item in self._data])
@property
def data(self: Self) -> list[tuple[JSONType, JSONType, str]]:
return self._data
|