googleapis / googleapis/google-cloud-python

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

Ouverte
#17,884 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
5.4k
Forks
1.8k
Merge moyen
3 j 4 h
PR mergées (30 j)
122

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
tooling
Type d'issue
Refactorisation
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.