Skip to content

Commit

Permalink
Merge pull request #68 from mal-lang/default-extras-to-dict
Browse files Browse the repository at this point in the history
Default extras field to 'dict'
  • Loading branch information
mrkickling committed Jul 17, 2024
2 parents 40d99b3 + 06416b4 commit ce881fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maltoolbox/attackgraph/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AttackGraphNode:
attributes: Optional[dict] = None

# Optional extra metadata for AttackGraphNode
extras: Optional[dict] = None
extras: dict = field(default_factory=dict)

def to_dict(self) -> dict:
"""Convert node to dictionary"""
Expand Down

0 comments on commit ce881fc

Please sign in to comment.