about summary refs log tree commit diff
path: root/gn3/case_attributes.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/case_attributes.py')
-rw-r--r--gn3/case_attributes.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gn3/case_attributes.py b/gn3/case_attributes.py
index 7c84890..099b9cc 100644
--- a/gn3/case_attributes.py
+++ b/gn3/case_attributes.py
@@ -4,6 +4,7 @@ import csv
 import json
 import uuid
 import tempfile
+from dataclasses import dataclass
 from typing import Union
 from enum import Enum, auto
 from pathlib import Path
@@ -33,6 +34,14 @@ caseattr = Blueprint("case-attribute", __name__)
 
 CATTR_DIFFS_DIR = "case-attribute-diffs"
 
+
+@dataclass
+class CaseAttributeEdit:
+    inbredset_id: int
+    user_id: str
+    diff: dict
+
+
 class NoDiffError(ValueError):
     """Raised if there is no difference between the old and new data."""
     def __init__(self):