googleapis / googleapis/google-cloud-python

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

未关闭
#16,502 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: firestore priority: p3 type: feature request
主要语言
Python
星标
5.4k
派生
1.8k
平均合并
3 天 4 小时
30 天内合并 PR
122

描述

### 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_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。