googleapis / googleapis/google-cloud-python

Add conditional logic in `_compat.py.j2` to import static code from google-api-core

オープン
#17,884 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
3日 4時間
マージ済み PR(30日)
122

説明

As part of refactoring the generator we are moving static code within templates to `_compat.py.j2` and google-api-core. Add conditional logic to check if this static code exists in google-api-core and use it from there, if not then use the fallback implementation within the file.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reading the generator template `_compat.py.j2` and locating the static code that is being moved. Then inspect how google-api-core exposes that code and how the generator handles conditional imports. Done means the template uses the google-api-core implementation when available and retains its fallback when it is not.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
tooling
issue の種類
リファクタリング
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。