style: organize imports per ruff; finish py39 Optional changes

- Fix import ordering in embedding servers and graph_partition_simple
- Remove duplicate Optional import
- Complete Optional[...] replacements
This commit is contained in:
Andy Lee
2025-08-07 15:06:25 -07:00
parent 65bbff1d93
commit 575b354976
5 changed files with 14 additions and 10 deletions

View File

@@ -10,10 +10,11 @@ import os
import subprocess
import tempfile
from pathlib import Path
from typing import Optional
def partition_graph_simple(
index_prefix_path: str, output_dir: str | None = None, **kwargs
index_prefix_path: str, output_dir: Optional[str] = None, **kwargs
) -> tuple[str, str]:
"""
Simple function to partition a graph index.