googleapis / googleapis/google-cloud-python

Include mypy types / add py.typed

Abierto
#13,362 3 comentarios 0 reacciones 0 asignados Ver en GitHub
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

**Is your feature request related to a problem? Please describe.**

Modern python can be type-checked using mypy, but the python distribution of this package does not include the type specs, nor is there a companion type package.

**Describe the solution you'd like**

Types generated using e.g. https://pypi.org/project/mypy-protobuf/ included either directly in the python googleapis-common-protos package or a separate googleapis-common-protos-stubs package. A separate stubs package might help with avoiding accidental breakage.

**Describe alternatives you've considered**

I could check in the googleapi protos into the repository where I'm using them and add codegen from that.

**Additional context**
For the grpcio packages, there's stubs maintained by a third-party, https://pypi.org/project/grpc-stubs/. The protoc plugin https://pypi.org/project/mypy-protobuf/ codegens stubs for proto files (messages and grpc clients/handlers).

These packages need py.typed

- [ ] google-cloud-access-context-manager
- [ ] google-cloud-audit-log
- [ ] googleapis-common-protos
- [ ] grpc-google-iam-v1

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.