googleapis / googleapis/google-cloud-python

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

オープン
#16,502 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
api: firestore priority: p3 type: feature request
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
3日 4時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。