chamikaramj commented on code in PR #22899:
URL: https://github.com/apache/beam/pull/22899#discussion_r955550117
##########
sdks/python/apache_beam/typehints/row_type.py:
##########
@@ -123,6 +123,12 @@ def from_fields(
field_options=field_options,
schema_registry=schema_registry)
+ def __call__(self, *args, **kwargs):
+ # We make RowTypeConstraint callable (defers to constructing the user type)
Review Comment:
Could you clarify why we need to make this a callable for Python to
recognize it as a type (may be also update the comment here) ?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]