googleapis / googleapis/google-cloud-python

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

Abierto
#17,884 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
5.4k
Forks
1.8k
Merge medio
3 d 4 h
PR fusionados (30 d)
122

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
tooling
Tipo de issue
Refactorización
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.