问题描述
def on_test_end(self,test_dict: Dict[str,Union[Tensor,List[str]]])):
"""
optionally override for postprocessing of test outputs
expect test dict to contain 'outputs' and maybe 'id'
"""
return test_dict
这非常适合推荐的大约 80 个字符的宽度。但是当我添加返回类型时:
def on_test_end(self,List[str]]]) -> Dict[str,List[str]]]):
"""
optionally override for postprocessing of test outputs
expect test dict to contain 'outputs' and maybe 'id'
"""
return test_dict
不合适。那么这里的换行符应该放在哪里?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)