Python mypy: float and int are incompatible types with numbers.Real

后端 未结 0 1243
死守一世寂寞
死守一世寂寞 2021-02-07 01:46

I am new to Python\'s static typing module mypy. I am trying to append ints and floats to an array, which I typed statically to be Real. But mypy says

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