Skip to content

Commit b252226

Browse files
fix: fix lint problem
1 parent e5dde68 commit b252226

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

graphgen/bases/base_storage.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
from dataclasses import dataclass
12
from typing import Generic, TypeVar, Union
23

34
T = TypeVar("T")
45

56

7+
@dataclass
68
class StorageNameSpace:
7-
def __init__(self, working_dir: str = None, namespace: str = None):
8-
self.working_dir = working_dir
9-
self.namespace = namespace
9+
working_dir: str = None
10+
namespace: str = None
1011

1112
async def index_done_callback(self):
1213
"""commit the storage operations after indexing"""

graphgen/models/kg_builder/mm_kg_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from collections import defaultdict
33
from typing import Dict, List, Tuple
44

5-
from graphgen.bases import BaseLLMClient, Chunk
5+
from graphgen.bases import Chunk
66
from graphgen.templates import MMKG_EXTRACTION_PROMPT
77
from graphgen.utils import (
88
detect_main_language,

0 commit comments

Comments
 (0)