robertwb commented on a change in pull request #14110:
URL: https://github.com/apache/beam/pull/14110#discussion_r597858255
##########
File path: sdks/python/apache_beam/coders/coders.py
##########
@@ -1186,9 +1183,21 @@ def __hash__(self):
return hash((type(self), self._elem_coder))
+class IterableCoder(ListLikeCoder):
+ """Coder of iterables of homogeneous objects."""
+ def to_type_hint(self):
+ return typehints.Iterable[self._elem_coder.to_type_hint()]
+
+
Coder.register_structured_urn(common_urns.coders.ITERABLE.urn, IterableCoder)
+class ListCoder(ListLikeCoder):
Review comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]