Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
stellasia committed Jan 21, 2025
1 parent bca341a commit ee16e54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/neo4j_graphrag/experimental/pipeline/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class EventType(enum.Enum):

@property
def is_pipeline_event(self) -> bool:
return self in [self.PIPELINE_STARTED, self.PIPELINE_FINISHED]
return self in [EventType.PIPELINE_STARTED, EventType.PIPELINE_FINISHED]

@property
def is_task_event(self) -> bool:
return self in [self.TASK_STARTED, self.TASK_FINISHED]
return self in [EventType.TASK_STARTED, EventType.TASK_FINISHED]


class Event(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion src/neo4j_graphrag/experimental/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def validate_parameter_mapping_for_task(self, task: TaskPipelineNode) -> bool:
return True

async def get_final_results(self, run_id: str) -> dict[str, Any]:
return await self.final_results.get(run_id)
return await self.final_results.get(run_id) # type: ignore[no-any-return]

async def run(self, data: dict[str, Any]) -> PipelineResult:
logger.debug("PIPELINE START")
Expand Down

0 comments on commit ee16e54

Please sign in to comment.