Skip to content

Commit abd4a55

Browse files
committed
fix: use Optional[str] for Python 3.9 compatibility
Replace str | None with Optional[str] for Python 3.9 support
1 parent 1e74c15 commit abd4a55

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎agp/config.py‎

Lines changed: 2 additions & 1 deletion
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 = ""

0 commit comments

Comments
 (0)