Skip to content

Commit 132c9d5

Browse files
committed
use yapf 0.29.0
1 parent ddc0a86 commit 132c9d5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sdks/python/apache_beam/yaml/yaml_io.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def write_to_text(pcoll, path: str):
7777
"""
7878
try:
7979
field_names = [
80-
name for name, _ in schemas.named_fields_from_element_type(
81-
pcoll.element_type)
80+
name for name,
81+
_ in schemas.named_fields_from_element_type(pcoll.element_type)
8282
]
8383
except Exception as exn:
8484
raise ValueError(
@@ -167,9 +167,7 @@ def write_to_bigquery(
167167
described at https://beam.apache.org/documentation/sdks/yaml-errors/
168168
Otherwise permanently failing records will cause pipeline failure.
169169
"""
170-
171170
class WriteToBigQueryHandlingErrors(beam.PTransform):
172-
173171
def default_label(self):
174172
return 'WriteToBigQuery'
175173

@@ -238,7 +236,8 @@ def _validate_schema():
238236
beam_schema = avroio.avro_schema_to_beam_schema(schema)
239237
covert_to_row = avroio.avro_dict_to_beam_row(schema, beam_schema)
240238
return (
241-
beam_schema, lambda record: covert_to_row(
239+
beam_schema,
240+
lambda record: covert_to_row(
242241
fastavro.schemaless_reader(
243242
fo=io.BytesIO(record), writer_schema=schema)))
244243
else:

0 commit comments

Comments
 (0)