File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1717import asyncio
1818import os
1919import signal
20- from typing import Any , Sequence , Tuple
20+ from collections .abc import Sequence
21+ from typing import Any
2122
2223import grpc
2324from grpc_reflection .v1alpha import reflection
@@ -74,7 +75,7 @@ def serve(
7475 * ,
7576 creds : grpc .ServerCredentials ,
7677 insecure : bool ,
77- options : Sequence [Tuple [str , Any ]] = None ,
78+ options : Sequence [tuple [str , Any ]] | None = None ,
7879) -> None :
7980 """Start a gRPC server and serve requests asychronously.
8081
@@ -83,6 +84,7 @@ def serve(
8384 address: The address at which to listen for requests.
8485 creds: The credentials used to authenticate requests.
8586 insecure: Serve insecurely, without credentials or encryption.
87+ options: Additional gRPC server options.
8688
8789 Raises:
8890 ValueError if creds is None and insecure is False.
You can’t perform that action at this time.
0 commit comments