Skip to content

Commit 4874d2e

Browse files
committed
fix black errors
1 parent 22aa84e commit 4874d2e

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

src/case-export/case_export/fragment.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ def _summarize_request(req: Any) -> Dict[str, Any]:
6767
if isinstance(v, dict) and "path" in v:
6868
raw_path = v.get("path")
6969
out[f"input:{k}"] = (
70-
Path(raw_path).as_posix()
71-
if raw_path is not None
72-
else ""
70+
Path(raw_path).as_posix() if raw_path is not None else ""
7371
)
7472
elif isinstance(v, dict) and "text" in v:
7573
t = v.get("text")
@@ -102,11 +100,7 @@ def _parse_request_structure(
102100
for key, v in ins.items():
103101
if isinstance(v, dict) and "path" in v:
104102
raw_path = v.get("path")
105-
p = (
106-
Path(raw_path).as_posix()
107-
if raw_path is not None
108-
else ""
109-
)
103+
p = Path(raw_path).as_posix() if raw_path is not None else ""
110104
if not p:
111105
continue
112106
kl = key.lower()

src/face-detection-recognition/face_detection_recognition/face_match_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,7 @@ def list_collections_endpoint(inputs: ListCollectionsInputs) -> ResponseBody:
13551355
# task_schema_func=list_collections_task_schema,
13561356
# )
13571357

1358+
13581359
def __getattr__(name: str):
13591360
"""Lazy ``DB`` for tests/tooling; avoids import-time Chroma init on partial imports."""
13601361
if name == "DB":

0 commit comments

Comments
 (0)