Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sdks/python/apache_beam/yaml/yaml_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,10 @@ def fn(x: PredictionResult):
model_handler_provider._postprocess_fn_internal()),
inference_args=inference_args)
| beam.Map(
lambda row: beam.Row(**{
inference_tag: row[1], **row[0]._asdict()
})).with_output_types(schema))
lambda row: beam.Row(
**{
**row[0]._asdict(), str(inference_tag): row[1]
})).with_output_types(schema))


def _config_to_obj(spec):
Expand Down
3 changes: 1 addition & 2 deletions sdks/python/pyrefly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ bad-context-manager = "ignore"
invalid-yield = "ignore"
bad-argument-count = "ignore"
bad-typed-dict-key = "ignore"
no-access = "ignore"
bad-unpacking = "ignore"
no-access = "ignore"
Loading