Skip to content

Commit b02307f

Browse files
Update graphgen/bases/datatypes.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0bffcfc commit b02307f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

graphgen/bases/datatypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from dataclasses import dataclass
1+
from dataclasses import dataclass, field
22

33

44
@dataclass
55
class Chunk:
66
id: str
77
content: str
8-
metadata: dict
8+
metadata: dict = field(default_factory=dict)
99

1010

1111
@dataclass

0 commit comments

Comments
 (0)