TheNeuralBit commented on code in PR #22899:
URL: https://github.com/apache/beam/pull/22899#discussion_r955564023


##########
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:
   It looks like this is actually being relaxed in Python 3.11: 
https://github.com/python/cpython/commit/870b22b9c442d035190d2b8fb82256cd9a03da48#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887



-- 
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]

Reply via email to