googleapis / googleapis/google-cloud-python

Configurable SnippetGen: add return type to the sample function

Offen
#16,420 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @dizcology Auf GitHub ansehen
samples type: feature request
Vorherrschende Sprache
Python
Sterne
5.4k
Forks
1.8k
Ø Merge
3 T. 4 Std.
Gemergte PRs (30 T.)
122

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.