Skip to content

Commit 41456e8

Browse files
committed
style: pylint problems in AnchorBFSPartitioner
1 parent 23fa2bb commit 41456e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graphgen/models/partitioner/anchor_bfs_partitioner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ class AnchorBFSPartitioner(BFSPartitioner):
2222

2323
def __init__(
2424
self,
25-
anchor_type: list = ["image"],
25+
anchor_type: list | None = None,
2626
anchor_ids: Set[str] | None = None,
2727
) -> None:
2828
super().__init__()
29-
# Normalize anchor_type to always be a list for internal processing
29+
if anchor_type is None:
30+
anchor_type = ["image"]
3031
if isinstance(anchor_type, str):
3132
self.anchor_types = [anchor_type]
3233
else:

0 commit comments

Comments
 (0)