From 316a9fd9c3d9cb2ace6ee4e26d6212409e5958fc Mon Sep 17 00:00:00 2001 From: Marius Conjeaud Date: Fri, 13 Dec 2024 16:15:07 +0100 Subject: [PATCH] mypy ignore await method --- neomodel/async_/match.py | 4 ++-- neomodel/async_/relationship_manager.py | 2 +- neomodel/sync_/match.py | 4 ++-- neomodel/sync_/relationship_manager.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/neomodel/async_/match.py b/neomodel/async_/match.py index 570f63e6..e46b37d0 100644 --- a/neomodel/async_/match.py +++ b/neomodel/async_/match.py @@ -1306,7 +1306,7 @@ def __init__(self, source: Any) -> None: self._intermediate_transforms: list = [] def __await__(self) -> Any: - return self.all().__await__() + return self.all().__await__() # type: ignore[attr-defined] async def _get( self, limit: TOptional[int] = None, lazy: bool = False, **kwargs: dict[str, Any] @@ -1696,7 +1696,7 @@ class AsyncTraversal(AsyncBaseSet): filters: list def __await__(self) -> Any: - return self.all().__await__() + return self.all().__await__() # type: ignore[attr-defined] def __init__(self, source: Any, name: str, definition: dict) -> None: """ diff --git a/neomodel/async_/relationship_manager.py b/neomodel/async_/relationship_manager.py index 7c7ea350..d9227ba0 100644 --- a/neomodel/async_/relationship_manager.py +++ b/neomodel/async_/relationship_manager.py @@ -75,7 +75,7 @@ def __str__(self) -> str: return f"{self.description} in {direction} direction of type {self.definition['relation_type']} on node ({self.source.element_id}) of class '{self.source_class.__name__}'" def __await__(self) -> Any: - return self.all().__await__() + return self.all().__await__() # type: ignore[attr-defined] def _check_node(self, obj: type["AsyncStructuredNode"]) -> None: """check for valid node i.e correct class and is saved""" diff --git a/neomodel/sync_/match.py b/neomodel/sync_/match.py index fe7dc33b..1f5d7087 100644 --- a/neomodel/sync_/match.py +++ b/neomodel/sync_/match.py @@ -1302,7 +1302,7 @@ def __init__(self, source: Any) -> None: self._intermediate_transforms: list = [] def __await__(self) -> Any: - return self.all().__await__() + return self.all().__await__() # type: ignore[attr-defined] def _get( self, limit: TOptional[int] = None, lazy: bool = False, **kwargs: dict[str, Any] @@ -1690,7 +1690,7 @@ class Traversal(BaseSet): filters: list def __await__(self) -> Any: - return self.all().__await__() + return self.all().__await__() # type: ignore[attr-defined] def __init__(self, source: Any, name: str, definition: dict) -> None: """ diff --git a/neomodel/sync_/relationship_manager.py b/neomodel/sync_/relationship_manager.py index 25067f1c..cba9fae8 100644 --- a/neomodel/sync_/relationship_manager.py +++ b/neomodel/sync_/relationship_manager.py @@ -70,7 +70,7 @@ def __str__(self) -> str: return f"{self.description} in {direction} direction of type {self.definition['relation_type']} on node ({self.source.element_id}) of class '{self.source_class.__name__}'" def __await__(self) -> Any: - return self.all().__await__() + return self.all().__await__() # type: ignore[attr-defined] def _check_node(self, obj: type["StructuredNode"]) -> None: """check for valid node i.e correct class and is saved"""