We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41b513e commit 90c2ab2Copy full SHA for 90c2ab2
2 files changed
sdks/python/apache_beam/yaml/yaml_ml.py
@@ -487,9 +487,10 @@ def fn(x: PredictionResult):
487
model_handler_provider._postprocess_fn_internal()),
488
inference_args=inference_args)
489
| beam.Map(
490
- lambda row: beam.Row(**{
491
- inference_tag: row[1], **row[0]._asdict()
492
- })).with_output_types(schema))
+ lambda row: beam.Row(
+ **{
+ **row[0]._asdict(), str(inference_tag): row[1]
493
+ })).with_output_types(schema))
494
495
496
def _config_to_obj(spec):
sdks/python/pyrefly.toml
@@ -58,5 +58,4 @@ bad-context-manager = "ignore"
58
invalid-yield = "ignore"
59
bad-argument-count = "ignore"
60
bad-typed-dict-key = "ignore"
61
-no-access = "ignore"
62
-bad-unpacking = "ignore"
+no-access = "ignore"
0 commit comments