googleapis / googleapis/google-cloud-python

Configurable SnippetGen: add imports

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

Description

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

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.