Skip to content

Commit 105131f

Browse files
Uniform statements for init
1 parent 4369a70 commit 105131f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

ingest/cell_metadata.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@
2222
# Welcome comments about whether this should live here or in the class
2323
@dataclass
2424
class Document(TypedDict):
25-
name: str
26-
study_accession: str
27-
unique_values: List
28-
annotation_type: str
29-
file_id: str
25+
def __init__(
26+
self,
27+
name: str,
28+
study_accession: str,
29+
unique_values: List,
30+
annotation_type: str,
31+
file_id: str,
32+
):
33+
self.name = name
34+
self.study_accession = study_accession
35+
self.unique_values = unique_values
36+
self.annotation_type = annotation_type
37+
self.file_id = file_id
3038

3139

3240
# Welcome comments about whether this should live here or in the class

0 commit comments

Comments
 (0)