fix: explicit type annotation for LazyGraphRAG internal state to fix global mypy errors
Browse files
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:
|