roc king
commited on
Commit
·
287997a
1
Parent(s):
d25ba26
[bug]import typing.cast for leiden.py (#3493)
Browse files### 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 +1 -1
graphrag/leiden.py
CHANGED
@@ -7,7 +7,7 @@ Reference:
|
|
7 |
|
8 |
import logging
|
9 |
import html
|
10 |
-
from typing import Any
|
11 |
from graspologic.partition import hierarchical_leiden
|
12 |
from graspologic.utils import largest_connected_component
|
13 |
|
|
|
7 |
|
8 |
import logging
|
9 |
import html
|
10 |
+
from typing import Any, cast
|
11 |
from graspologic.partition import hierarchical_leiden
|
12 |
from graspologic.utils import largest_connected_component
|
13 |
|