dev-yuje commited on
Commit
6f726d8
ยท
1 Parent(s): 7ec56d7

fix: explicit type annotation for LazyGraphRAG internal state to fix global mypy errors

Browse files
Files changed (1) hide show
  1. src/retrieval/finRetrieval.py +1 -1
src/retrieval/finRetrieval.py CHANGED
@@ -180,7 +180,7 @@ _prompt_template = CustomRagTemplate(
180
  class LazyGraphRAG:
181
  """์ž„ํฌํŠธ ์‹œ์ ์— DB ์—ฐ๊ฒฐ์„ ๋ฐฉ์ง€ํ•˜๊ณ  ์‹ค์ œ ํ˜ธ์ถœ๋  ๋•Œ GraphRAG ์ธ์Šคํ„ด์Šค๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ์ง€์—ฐ ํ‰๊ฐ€ ํ”„๋ก์‹œ"""
182
  def __init__(self) -> None:
183
- self._graphrag = None
184
 
185
  def _init_once(self) -> None:
186
  if self._graphrag is not None:
 
180
  class LazyGraphRAG:
181
  """์ž„ํฌํŠธ ์‹œ์ ์— DB ์—ฐ๊ฒฐ์„ ๋ฐฉ์ง€ํ•˜๊ณ  ์‹ค์ œ ํ˜ธ์ถœ๋  ๋•Œ GraphRAG ์ธ์Šคํ„ด์Šค๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ์ง€์—ฐ ํ‰๊ฐ€ ํ”„๋ก์‹œ"""
182
  def __init__(self) -> None:
183
+ self._graphrag: Any = None
184
 
185
  def _init_once(self) -> None:
186
  if self._graphrag is not None: