googleapis / googleapis/google-cloud-python
Configurable SnippetGen: add return type to the sample function
未關閉
samples
type: feature request
- 主要語言
- Python
- 星號
- 5.4k
- 分支
- 1.8k
- 平均合併
- 2 天 23 小時
- 30 天內合併 PR
- 123
描述
The sample function's return type is specified in the snippet config.
This and the sample function parameters (https://github.com/googleapis/google-cloud-python/issues/16419) will require the functionality of translating recursively defined `snippet_config_language.Type` into Python's type annotation (in libcst: https://libcst.readthedocs.io/en/latest/nodes.html#libcst.FunctionDef.returns).
貢獻指南
評估
這個 Issue 還沒有評估資料。