fix: ruff formatting
This commit is contained in:
parent
dc637f70b0
commit
fbb7d72461
1 changed files with 5 additions and 3 deletions
|
|
@ -10,7 +10,6 @@ from cognee.tasks.storage.exceptions import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def add_data_points(
|
async def add_data_points(
|
||||||
data_points: List[DataPoint], update_edge_collection=True
|
data_points: List[DataPoint], update_edge_collection=True
|
||||||
) -> List[DataPoint]:
|
) -> List[DataPoint]:
|
||||||
|
|
@ -41,8 +40,11 @@ async def add_data_points(
|
||||||
- Inserts nodes and edges into the graph engine.
|
- Inserts nodes and edges into the graph engine.
|
||||||
- Optionally updates the edge index via `index_graph_edges`.
|
- Optionally updates the edge index via `index_graph_edges`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
async def add_data_points(data_points: List[DataPoint], update_edge_collection: bool = True) -> List[DataPoint]:
|
|
||||||
|
async def add_data_points(
|
||||||
|
data_points: List[DataPoint], update_edge_collection: bool = True
|
||||||
|
) -> List[DataPoint]:
|
||||||
if not isinstance(data_points, list):
|
if not isinstance(data_points, list):
|
||||||
raise InvalidDataPointsInAddDataPointsError("data_points must be a list.")
|
raise InvalidDataPointsInAddDataPointsError("data_points must be a list.")
|
||||||
if not all(isinstance(dp, DataPoint) for dp in data_points):
|
if not all(isinstance(dp, DataPoint) for dp in data_points):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue