Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions stubs/grpcio-health-checking/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Upb messages accept (*args, **kwargs) at runtime. HealthListRequest has no
# fields, so its constructor takes no arguments.
grpc_health.v1.health_pb2.HealthListRequest.__init__
2 changes: 1 addition & 1 deletion stubs/grpcio-health-checking/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = "1.*"
version = "1.85.*"
upstream-repository = "https://github.com/grpc/grpc"
dependencies = ["types-grpcio", "types-protobuf"]
26 changes: 26 additions & 0 deletions stubs/grpcio-health-checking/grpc_health/v1/health_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from _typeshed import Incomplete
from collections.abc import Mapping
from typing import ClassVar, Literal, final

from google._upb._message import Descriptor, FileDescriptor, MessageMeta
from google.protobuf import message
from google.protobuf.internal.containers import MessageMap
from google.protobuf.internal.enum_type_wrapper import EnumTypeWrapper

DESCRIPTOR: FileDescriptor
Expand All @@ -24,3 +27,26 @@ class HealthCheckResponse(message.Message, metaclass=MessageMeta):
status: int
def __init__(self, status: int | str | None = ...) -> None: ...
DESCRIPTOR: Descriptor

@final
class HealthListRequest(message.Message, metaclass=MessageMeta):
def __init__(self) -> None: ...
DESCRIPTOR: Descriptor

@final
class HealthListResponse(message.Message, metaclass=MessageMeta):
@final
class StatusesEntry(message.Message, metaclass=MessageMeta):
KEY_FIELD_NUMBER: ClassVar[int]
VALUE_FIELD_NUMBER: ClassVar[int]
key: str
value: HealthCheckResponse
def __init__(
self, key: str | None = ..., value: HealthCheckResponse | Mapping[Incomplete, Incomplete] | None = ...
) -> None: ...
DESCRIPTOR: Descriptor

STATUSES_FIELD_NUMBER: ClassVar[int]
statuses: MessageMap[str, HealthCheckResponse]
def __init__(self, statuses: Mapping[str, HealthCheckResponse] | None = ...) -> None: ...
DESCRIPTOR: Descriptor
14 changes: 14 additions & 0 deletions stubs/grpcio-health-checking/grpc_health/v1/health_pb2_grpc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class HealthStub:
class HealthServicer:
# Generated methods are overridden by both synchronous and asynchronous servicers.
def Check(self, request: health_pb2.HealthCheckRequest, context: Any) -> Any: ...
def List(self, request: health_pb2.HealthListRequest, context: Any) -> Any: ...
def Watch(self, request: health_pb2.HealthCheckRequest, context: Any) -> Any: ...

def add_HealthServicer_to_server(servicer: HealthServicer, server: grpc.Server | aio.Server) -> None: ...
Expand All @@ -32,6 +33,19 @@ class Health:
metadata=None,
): ...
@staticmethod
def List(
request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None,
): ...
@staticmethod
def Watch(
request,
target,
Expand Down
Loading