How to annotate a python method parameter to indicate a numpy array is being passed in?

前端 未结 0 359
花落未央
花落未央 2021-01-17 09:09

I can do this in Python 3:

def foo(bar: int):
    pass

So that bar is guaranteed to be an int.

Assuming I ha

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