In mypy why does boolean pass float type annotation

前端 未结 0 864
轻奢々
轻奢々 2020-11-22 17:14

The example below returns a boolean instead of a float. This passes mypy and shows no errors in the PyCharm editor.

def add(a: float, b: float) -> float:
          


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