Why am I getting a mypy error for Optional type when I have early return for when value is None?

后端 未结 0 385
醉酒成梦
醉酒成梦 2020-12-31 19:56

I would appreciate some help with an error I\'m having with mypy.

My function looks something like:

def get_result(
    f1: float,
    l: List[float],
         


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