googleapis / googleapis/google-cloud-python

Configurable SnippetGen: add imports

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

Beschreibung

The imports should be added only after the whole sample function def has been generated (but before region tags are added https://github.com/googleapis/google-cloud-python/issues/16422), since there could be other dependencies that requires importing (such as `os`, or `protobuf`) besides the GAPIC module such as `from google.cloud import speech_v1`.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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