googleapis / googleapis/google-cloud-python

Configurable SnippetGen: add imports

未关闭
#16,421 1 条评论 0 个 reaction 已指派 1 人 已被 @dizcology 认领 在 GitHub 查看
type: feature request
主要语言
Python
星标
5.4k
派生
1.8k
平均合并
3 天 4 小时
30 天内合并 PR
122

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。