Skip to content

Commit dc7c61b

Browse files
committed
Update agp/config.py to replace str | None with Optional[str] and add from typing import Optional import
1 parent ed4aa53 commit dc7c61b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

agp/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
from dataclasses import dataclass, field
3+
from typing import Optional
34

45

56
def apply_config_overrides(obj, config_path, verbose=False):
@@ -54,7 +55,7 @@ class ReportConfig:
5455
sensor_interval: int = 5
5556
min_samples: int = 5
5657
verbose: bool = False
57-
config: str | None = None
58+
config: Optional[str] = None
5859
patient_name: str = "Unknown"
5960
patient_id: str = "N/A"
6061
doctor: str = ""
@@ -106,4 +107,4 @@ def build_config(args):
106107
"MIN_SAMPLES_PER_BIN": min_samples,
107108
"SENSOR_INTERVAL": sensor_interval,
108109
"ROC_CLIP": 10, # Physiological constant
109-
}
110+
}

0 commit comments

Comments
 (0)