From 1df12c125924f0333249c93802ba761a4bc4999a Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:47:13 +0100 Subject: [PATCH] fix: Fixes processing false Class keyword issue --- cognee/shared/SourceCodeGraph.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cognee/shared/SourceCodeGraph.py b/cognee/shared/SourceCodeGraph.py index 60f425e32..0fc8f9487 100644 --- a/cognee/shared/SourceCodeGraph.py +++ b/cognee/shared/SourceCodeGraph.py @@ -28,7 +28,7 @@ class Class(DataPoint): description: str constructor_parameters: List[Variable] extended_from_class: Optional["Class"] = None - has_methods: list["Function"] + has_methods: List["Function"] _metadata = { "index_fields": ["name"] @@ -89,7 +89,8 @@ class SourceCodeGraph(DataPoint): Operator, Expression, ]] - Class.model_rebuild() ClassInstance.model_rebuild() Expression.model_rebuild() +FunctionCall.model_rebuild() +SourceCodeGraph.model_rebuild()