googleapis / googleapis/google-cloud-python

Configurable SnippetGen: add return type to the sample function

Open
#16,420 1 comment 0 reactions 1 assignee Claimed by @dizcology View on GitHub
samples type: feature request
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.