Skip to content

Commit

Permalink
Accept any Iterable for service_names
Browse files Browse the repository at this point in the history
Passing a set works for me locally, but then Mypy gets mad because of this type hint.
  • Loading branch information
dimo414 authored Sep 21, 2023
1 parent b2d5e65 commit 70be9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grpc_reflection-stubs/v1alpha/reflection.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ReflectionServicer(BaseReflectionServicer):
...

def enable_server_reflection(
service_names: typing.List[str],
service_names: typing.Iterable[str],
server: AnyServer,
pool: typing.Optional[descriptor_pool.DescriptorPool] = ...,
) -> None:
Expand Down

0 comments on commit 70be9cc

Please sign in to comment.