saavannanavati commented on a change in pull request #12352: URL: https://github.com/apache/beam/pull/12352#discussion_r471078200
########## File path: sdks/python/apache_beam/runners/worker/opcounters.py ########## @@ -224,8 +230,25 @@ def _observable_callback_inner(value, is_encoded=False): return _observable_callback_inner + def type_check(self, value): + # type: (any, bool) -> None + for transform_label, type_constraint_tuple in ( + self.output_type_constraints.items()): + parameter_name, constraint = type_constraint_tuple + try: + _check_instance_type(constraint, value, parameter_name, verbose=True) + except TypeCheckError as e: + if not transform_label.startswith('ParDo'): Review comment: This is here for the same reason as [here](https://github.com/apache/beam/pull/12352#discussion_r471075579). I can add the same TODO there, or remove it entirely. What would you prefer? ---------------------------------------------------------------- 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: us...@infra.apache.org