Fix linting
This commit is contained in:
@@ -1037,15 +1037,15 @@ class PGGraphStorage(BaseGraphStorage):
|
|||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
self.graph_name = self.namespace or os.environ.get("AGE_GRAPH_NAME", "lightrag")
|
self.graph_name = self.namespace or os.environ.get("AGE_GRAPH_NAME", "lightrag")
|
||||||
self.db: PostgreSQLDB | None = None
|
self.db: PostgreSQLDB | None = None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _normalize_node_id(node_id: str) -> str:
|
def _normalize_node_id(node_id: str) -> str:
|
||||||
"""
|
"""
|
||||||
Normalize node ID to ensure special characters are properly handled in Cypher queries.
|
Normalize node ID to ensure special characters are properly handled in Cypher queries.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
node_id: The original node ID
|
node_id: The original node ID
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Normalized node ID suitable for Cypher queries
|
Normalized node ID suitable for Cypher queries
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user