str | None
Optional[str]
from typing import Optional
1 parent ed4aa53 commit dc7c61bCopy full SHA for dc7c61b
1 file changed
agp/config.py
@@ -1,5 +1,6 @@
1
import json
2
from dataclasses import dataclass, field
3
+from typing import Optional
4
5
6
def apply_config_overrides(obj, config_path, verbose=False):
@@ -54,7 +55,7 @@ class ReportConfig:
54
55
sensor_interval: int = 5
56
min_samples: int = 5
57
verbose: bool = False
- config: str | None = None
58
+ config: Optional[str] = None
59
patient_name: str = "Unknown"
60
patient_id: str = "N/A"
61
doctor: str = ""
@@ -106,4 +107,4 @@ def build_config(args):
106
107
"MIN_SAMPLES_PER_BIN": min_samples,
108
"SENSOR_INTERVAL": sensor_interval,
109
"ROC_CLIP": 10, # Physiological constant
- }
110
+ }
0 commit comments