This is an automated email from the ASF dual-hosted git repository.
jrmccluskey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 90dd93f5241 Disable failing mypy check in yaml_io.py (#29666)
90dd93f5241 is described below
commit 90dd93f5241284da2e49c818af03e98b5132d30a
Author: Jack McCluskey <[email protected]>
AuthorDate: Thu Dec 7 14:12:41 2023 -0500
Disable failing mypy check in yaml_io.py (#29666)
* Disable failing pylint check in yaml_io.py
* Correct suppression
* Fine-grained disable
---
sdks/python/apache_beam/yaml/yaml_io.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sdks/python/apache_beam/yaml/yaml_io.py
b/sdks/python/apache_beam/yaml/yaml_io.py
index bf4009719b8..b8abc47056c 100644
--- a/sdks/python/apache_beam/yaml/yaml_io.py
+++ b/sdks/python/apache_beam/yaml/yaml_io.py
@@ -152,10 +152,11 @@ def _create_parser(
elif format == 'avro':
beam_schema = avroio.avro_schema_to_beam_schema(schema)
covert_to_row = avroio.avro_dict_to_beam_row(schema, beam_schema)
+ # pylint: disable=line-too-long
return (
beam_schema,
lambda record: covert_to_row(
- fastavro.schemaless_reader(io.BytesIO(record), schema)))
+ fastavro.schemaless_reader(io.BytesIO(record), schema))) # type:
ignore[call-arg]
else:
raise ValueError(f'Unknown format: {format}')