Browse Source

[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)
tags/v0.14.0
roc king 11 months ago
parent
commit
bcb6f7168f
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      graphrag/leiden.py

+ 1
- 1
graphrag/leiden.py View File

@@ -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


Loading…
Cancel
Save