From bcb6f7168f0dbc5e5b1f2b598afc939cdf873619 Mon Sep 17 00:00:00 2001 From: roc king Date: Tue, 19 Nov 2024 18:42:30 +0800 Subject: [PATCH] [bug]import typing.cast for leiden.py (#3493) ### What problem does this PR solve? leiden alg throws exception for lack func cast definition ### Type of change - Bug Fix (non-breaking change which fixes an issue) --- graphrag/leiden.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphrag/leiden.py b/graphrag/leiden.py index 9b03d628f..4c87f085f 100644 --- a/graphrag/leiden.py +++ b/graphrag/leiden.py @@ -7,7 +7,7 @@ Reference: import logging import html -from typing import Any +from typing import Any, cast from graspologic.partition import hierarchical_leiden from graspologic.utils import largest_connected_component