重构第一版:重新验证2.0推荐写法
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from typing import Annotated
|
||||
|
||||
|
||||
def say_hello(name: Annotated[str, "this is just metadata"]) -> str:
|
||||
return f"Hello {name}"
|
||||
|
||||
print(say_hello('Annotated'))
|
||||
Reference in New Issue
Block a user