return type and actual return type

前端 未结 0 1635
孤街浪徒
孤街浪徒 2020-11-29 16:12
def f(x: int) -> str:
    return 0

for the function above, how can I raise AssertionError because function is supposed to return a s

相关标签:
回答
  • 消灭零回复
提交回复
热议问题