googleapis / googleapis/google-cloud-python

add more types to `google.cloud.firestore.BaseDocumentReference`

Abierto
#16,502 0 comentarios 0 reacciones 0 asignados Ver en GitHub
api: firestore priority: p3 type: feature request
Lenguaje dominante
Python
Estrellas
5.4k
Forks
1.8k
Merge medio
3 d 4 h
PR fusionados (30 d)
122

Descripción

### Determine this is the right repository

- [x] I determined this is the correct repository in which to report this feature request.

### Summary of the feature request

many methods of `{Async,}DocumentReference` (such as `id`, `path`, `collections`, …) are missing some type information, making my strict type checker complain about using `Any` (type used when not documented). having theses types in the codebase directly will help ensure that we are correctly using theses references.

### Desired code experience

```python
_: int = reference.path
```

### Expected results

lint fails with "Incompatible types in assignment"

### API client name and version

_No response_

### Use case

catch errors sooner

### Additional context

_No response_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.