File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from typing import Any
1+ from typing import Any , Mapping
22from uuid import UUID
33
44from pydantic .dataclasses import dataclass
1010class SampleDocumentCreate :
1111 sample_id : UUID
1212 json_data : DocumentMetadata
13- secondary_json_dict : dict [str , Any ]
13+ secondary_json_dict : Mapping [str , Any ]
Original file line number Diff line number Diff line change 11from datetime import datetime
2- from typing import Any
2+ from typing import Any , Mapping
33from uuid import UUID
44
55from pydantic .dataclasses import dataclass
88@dataclass (frozen = True )
99class DocumentMetadata :
1010 id : UUID
11- tags : list [str ]
11+ tags : tuple [str , ... ]
1212
1313
1414@dataclass (frozen = True )
1515class SampleDocument :
1616 id : UUID
1717 sample_id : UUID
1818 json_data : DocumentMetadata
19- secondary_json_dict : dict [str , Any ]
19+ secondary_json_dict : Mapping [str , Any ]
2020 created_datetime : datetime
You can’t perform that action at this time.
0 commit comments