setta 0.0.5.dev0__py3-none-any.whl → 0.0.5.dev2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
setta/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.5.dev0"
1
+ __version__ = "0.0.5.dev2"
@@ -9,7 +9,7 @@ def remove_tp(x):
9
9
  return x.lstrip(C.TEMPLATE_PREFIX)
10
10
 
11
11
 
12
- def parse_template_var(template_str: str) -> tuple[str, str | None]:
12
+ def parse_template_var(template_str: str):
13
13
  suffixes = [
14
14
  f"{tp(C.TEMPLATE_VAR_IMPORT_PATH_SUFFIX)}",
15
15
  f"{tp(C.TEMPLATE_VAR_VERSION_SUFFIX)}",
setta/routers/sections.py CHANGED
@@ -1,6 +1,6 @@
1
1
  import os
2
2
  from pathlib import Path
3
- from typing import Dict, List
3
+ from typing import Dict, List, Optional
4
4
 
5
5
  from fastapi import APIRouter, HTTPException, status
6
6
  from pydantic import BaseModel
@@ -46,7 +46,7 @@ class ParamSweepSectionToYamlRequest(BaseModel):
46
46
 
47
47
 
48
48
  class GlobalParamSweepSectionToYamlRequest(BaseModel):
49
- runGroup: dict | None
49
+ runGroup: Optional[dict]
50
50
  sections: dict
51
51
  sectionVariants: dict
52
52