From 59b7bf43c380bdf7a6dba9d6654751335a823e21 Mon Sep 17 00:00:00 2001 From: Gal Shubeli Date: Wed, 6 Aug 2025 17:51:57 +0300 Subject: [PATCH] fix-pyright --- graphiti_core/helpers.py | 2 +- graphiti_core/utils/maintenance/graph_data_operations.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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( *[