Skip to content

Commit 1208689

Browse files
committed
Fix dataclass wiring issue
1 parent c68762a commit 1208689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vulnerability_fix_engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import shutil
77
import string
88
from collections import Counter
9-
from dataclasses import dataclass, asdict
9+
from dataclasses import dataclass, asdict, field
1010
from random import random
1111
from typing import List, Optional, Dict, Generator
1212

@@ -93,7 +93,7 @@ class VulnerabilityFixModule:
9393
save_point_location: str
9494
pr_message_file_absolute_path: str
9595
commit_message: str
96-
_cached_vulnerable_projects: List['VulnerableProjectFiles'] = []
96+
_cached_vulnerable_projects: List['VulnerableProjectFiles'] = field(default_factory=list)
9797

9898
def clean_previous_run(self):
9999
# Cleanup method to get rid of previous files

0 commit comments

Comments
 (0)