Skip to content

Commit 990ab56

Browse files
committed
add version to run output
1 parent 09c044f commit 990ab56

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bcorag/custom_types.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from . import __version__
12
from typing import TypedDict, Optional, Literal
23

34
### General literal for domains
@@ -88,10 +89,16 @@ class OutputTrackerRunsEntry(TypedDict):
8889
txt_file: str
8990
json_file: str
9091
source_node_file: str
92+
version: str
9193

9294

9395
def create_output_tracker_runs_entry(
94-
index: int, timestamp: str, txt_file: str, json_file: str, source_node_file: str
96+
index: int,
97+
timestamp: str,
98+
txt_file: str,
99+
json_file: str,
100+
source_node_file: str,
101+
version: str = __version__,
95102
) -> OutputTrackerRunsEntry:
96103
"""Constructor for the OutputTrackerRunsEntry TypedDict."""
97104
return_data: OutputTrackerRunsEntry = {
@@ -100,6 +107,7 @@ def create_output_tracker_runs_entry(
100107
"txt_file": txt_file,
101108
"json_file": json_file,
102109
"source_node_file": source_node_file,
110+
"version": version,
103111
}
104112
return return_data
105113

0 commit comments

Comments
 (0)