[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)
This commit is contained in:
roc king 2024-11-19 18:42:30 +08:00 committed by GitHub
parent 361cff34fc
commit bcb6f7168f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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