重构第一版:重新验证2.0推荐写法

This commit is contained in:
geeker
2026-09-24 16:49:43 +08:00
parent 81db17ba9e
commit e1e0fc5283
5 changed files with 246 additions and 234 deletions
+7
View File
@@ -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'))