y1chi commented on a change in pull request #15441:
URL: https://github.com/apache/beam/pull/15441#discussion_r721796625
##########
File path:
sdks/python/apache_beam/runners/portability/fn_api_runner/execution.py
##########
@@ -111,15 +133,28 @@ def reset(self):
pass
-class ListBuffer(object):
+class ListBuffer:
"""Used to support parititioning of a list."""
def __init__(self, coder_impl):
- # type: (CoderImpl) -> None
- self._coder_impl = coder_impl
+ # type: (Optional[CoderImpl]) -> None
+ self._coder_impl = coder_impl or CoderImpl()
Review comment:
Got it.
--
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]