We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23fa2bb commit 41456e8Copy full SHA for 41456e8
graphgen/models/partitioner/anchor_bfs_partitioner.py
@@ -22,11 +22,12 @@ class AnchorBFSPartitioner(BFSPartitioner):
22
23
def __init__(
24
self,
25
- anchor_type: list = ["image"],
+ anchor_type: list | None = None,
26
anchor_ids: Set[str] | None = None,
27
) -> None:
28
super().__init__()
29
- # Normalize anchor_type to always be a list for internal processing
+ if anchor_type is None:
30
+ anchor_type = ["image"]
31
if isinstance(anchor_type, str):
32
self.anchor_types = [anchor_type]
33
else:
0 commit comments