Abacn commented on code in PR #37728:
URL: https://github.com/apache/beam/pull/37728#discussion_r2954894923


##########
sdks/python/apache_beam/typehints/schemas.py:
##########
@@ -629,7 +630,7 @@ def schema_from_element_type(element_type: type) -> 
schema_pb2.Schema:
   Returns schema as a list of (name, python_type) tuples"""
   if isinstance(element_type, row_type.RowTypeConstraint):
     return named_fields_to_schema(element_type._fields)
-  elif match_is_named_tuple(element_type):
+  elif match_is_named_tuple(element_type) or match_is_dataclass(element_type):

Review Comment:
   thanks, added in 
https://github.com/apache/beam/pull/37855/changes/f73f584b4a46ff23c6a2c1721e150bf57481abed



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