Replies: 1 comment
-
可以是list,也可以是int或者float,把Annotated里面的str改成对应的类型就可以。返回值也可以是list,int之类的值。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
参数parameters本身是否可以为list,parameters内部的参数类型是否可以是str之外的其他类型,这里没有看到类型的定义位置
另外,看注释说返回值可以是各种类型,是这样么
Beta Was this translation helpful? Give feedback.
All reactions