Skip to content

Commit 6094cad

Browse files
committed
fix lint issues
Signed-off-by: Matej Ohradzansky <matohradzansky@gmail.com>
1 parent 01f7a06 commit 6094cad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crossplane/function/runtime.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
import asyncio
1818
import os
1919
import signal
20-
from typing import Any, Sequence, Tuple
20+
from collections.abc import Sequence
21+
from typing import Any
2122

2223
import grpc
2324
from 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.

0 commit comments

Comments
 (0)