googleapis / googleapis/google-cloud-python
Add conditional logic in `_compat.py.j2` to import static code from google-api-core
- Lingua principale
- Python
- Stelle
- 5.4k
- Fork
- 1.8k
- Merge medio
- 3g 4h
- PR unite (30g)
- 122
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- tooling
- Tipo di issue
- Refactoring
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100