Skip to content
代码片段 群组 项目
未验证 提交 08431497 编辑于 作者: Robert Bradshaw's avatar Robert Bradshaw 提交者: GitHub
浏览文件

Allow get_coder(None).


Co-authored-by: default avatarAndy Ye <andyye333@gmail.com>
上级 27b898b1
No related branches found
No related tags found
无相关合并请求
......@@ -124,7 +124,7 @@ class CoderRegistry(object):
def get_coder(self, typehint):
# type: (Any) -> coders.Coder
if typehint.__module__ == '__main__':
if typehint and typehint.__module__ == '__main__':
# See https://issues.apache.org/jira/browse/BEAM-14250
# TODO(robertwb): Remove once all runners are portable.
typehint = str(typehint)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册