diff --git a/graphiti_core/decorators.py b/graphiti_core/decorators.py index 9cbdeefb..a8548659 100644 --- a/graphiti_core/decorators.py +++ b/graphiti_core/decorators.py @@ -16,8 +16,8 @@ limitations under the License. import functools import inspect - -from typing import Any, Awaitable, Callable, TypeVar +from collections.abc import Awaitable, Callable +from typing import Any, TypeVar from graphiti_core.driver.driver import GraphProvider from graphiti_core.helpers import semaphore_gather @@ -96,7 +96,7 @@ def get_parameter_position(func: Callable, param_name: str) -> int | None: If the parameter is not found, returns None. """ sig = inspect.signature(func) - for idx, (name, param) in enumerate(sig.parameters.items()): + for idx, (name, _param) in enumerate(sig.parameters.items()): if name == param_name: return idx return None \ No newline at end of file diff --git a/graphiti_core/driver/driver.py b/graphiti_core/driver/driver.py index d38a2598..ac1a3146 100644 --- a/graphiti_core/driver/driver.py +++ b/graphiti_core/driver/driver.py @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. """ -import copy import logging from abc import ABC, abstractmethod from collections.abc import Coroutine diff --git a/graphiti_core/driver/falkordb_driver.py b/graphiti_core/driver/falkordb_driver.py index 8dd51c76..48194ca1 100644 --- a/graphiti_core/driver/falkordb_driver.py +++ b/graphiti_core/driver/falkordb_driver.py @@ -18,8 +18,6 @@ import logging from datetime import datetime from typing import TYPE_CHECKING, Any -from typing_extensions import LiteralString - if TYPE_CHECKING: from falkordb import Graph as FalkorGraph from falkordb.asyncio import FalkorDB @@ -36,7 +34,6 @@ else: from graphiti_core.driver.driver import GraphDriver, GraphDriverSession, GraphProvider from graphiti_core.graph_queries import get_fulltext_indices, get_range_indices -from graphiti_core.helpers import semaphore_gather logger = logging.getLogger(__name__) diff --git a/graphiti_core/helpers.py b/graphiti_core/helpers.py index eca6fb8e..d457cb26 100644 --- a/graphiti_core/helpers.py +++ b/graphiti_core/helpers.py @@ -28,7 +28,6 @@ from numpy._typing import NDArray from pydantic import BaseModel from typing_extensions import LiteralString -from graphiti_core.driver.driver import GraphProvider from graphiti_core.errors import GroupIdValidationError load_dotenv() diff --git a/uv.lock b/uv.lock index d9d8d33c..0f736407 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 2 +revision = 3 requires-python = ">=3.10, <4" resolution-markers = [ "python_full_version >= '3.14'", @@ -746,7 +746,7 @@ wheels = [ [[package]] name = "graphiti-core" -version = "0.18.4" +version = "0.18.5" source = { editable = "." } dependencies = [ { name = "diskcache" },