This is an automated email from the ASF dual-hosted git repository.

vterentev pushed a commit to branch fix-python-xlang
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/fix-python-xlang by this push:
     new 20e2f2dae06 Use Sequence for iterable_type
20e2f2dae06 is described below

commit 20e2f2dae06472c2b21f13aac2dbe55e9185ac2f
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Mon Jun 2 18:55:12 2025 +0400

    Use Sequence for iterable_type
---
 sdks/python/apache_beam/typehints/schemas.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/sdks/python/apache_beam/typehints/schemas.py 
b/sdks/python/apache_beam/typehints/schemas.py
index 251d9f2a7b8..de4cdb9fdf7 100644
--- a/sdks/python/apache_beam/typehints/schemas.py
+++ b/sdks/python/apache_beam/typehints/schemas.py
@@ -539,11 +539,8 @@ class SchemaTranslation(object):
             fieldtype_proto.logical_type).language_type()
 
     elif type_info == "iterable_type":
-      return Iterable[
-          self.typing_from_runner_api(
-              fieldtype_proto.iterable_type.element_type
-          )
-      ]
+      return Sequence[self.typing_from_runner_api(
+          fieldtype_proto.iterable_type.element_type)]
 
     else:
       raise ValueError(f"Unrecognized type_info: {type_info!r}")

Reply via email to