googleapis / googleapis/google-cloud-python
Configurable SnippetGen: add return type to the sample function
Đang mở
samples
type: feature request
- Ngôn ngữ chính
- Python
- Star
- 5.4k
- Fork
- 1.8k
- Merge trung bình
- 3 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 122
Mô tả
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).
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.