diff --git a/graphiti_core/helpers.py b/graphiti_core/helpers.py index fa368b26..00eab227 100644 --- a/graphiti_core/helpers.py +++ b/graphiti_core/helpers.py @@ -83,7 +83,7 @@ async def semaphore_gather( return await asyncio.gather(*(_wrap_coroutine(coroutine) for coroutine in coroutines)) -def validate_group_id(group_id: str) -> bool: +def validate_group_id(group_id: str | None) -> bool: """ Validate that a group_id contains only ASCII alphanumeric characters, dashes, and underscores. diff --git a/graphiti_core/utils/maintenance/graph_data_operations.py b/graphiti_core/utils/maintenance/graph_data_operations.py index b866607f..eb69b186 100644 --- a/graphiti_core/utils/maintenance/graph_data_operations.py +++ b/graphiti_core/utils/maintenance/graph_data_operations.py @@ -49,9 +49,9 @@ async def build_indices_and_constraints(driver: GraphDriver, delete_existing: bo ) range_indices: list[LiteralString] = get_range_indices(driver.provider) - fulltext_indices: list[LiteralString] = get_fulltext_indices(driver.provider) + fulltext_indices: list[str] = get_fulltext_indices(driver.provider) - index_queries: list[LiteralString] = range_indices + fulltext_indices + index_queries: list[str] = range_indices + fulltext_indices await semaphore_gather( *[