Skip to content

Commit f5d7154

Browse files
committed
push
1 parent 59f89e2 commit f5d7154

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

langfuse/_client/datasets.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from opentelemetry.util._decorator import _agnosticcontextmanager
66

77
from langfuse.api.datasets import (
8-
CreateDatasetRunItemRequest,
98
Dataset,
109
DatasetItem,
1110
DatasetStatus,
@@ -131,13 +130,11 @@ def run(
131130
)
132131

133132
self.langfuse.api.dataset_run_items.create(
134-
request=CreateDatasetRunItemRequest(
135-
runName=run_name,
136-
datasetItemId=self.id,
137-
traceId=span.trace_id,
138-
metadata=run_metadata,
139-
runDescription=run_description,
140-
)
133+
run_name=run_name,
134+
dataset_item_id=self.id,
135+
trace_id=span.trace_id,
136+
metadata=run_metadata,
137+
run_description=run_description,
141138
)
142139

143140
yield span

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,5 @@ module = [
9494
ignore_missing_imports = true
9595

9696
[[tool.mypy.overrides]]
97-
module = [
98-
"langfuse.api.*",
99-
]
100-
ignore_errors = true
101-
97+
module = "langfuse.api.*"
98+
disable_error_code = ["redundant-cast", "no-untyped-def"]

0 commit comments

Comments
 (0)