Update deprecated Python 3.8 typing (#13971)

This commit is contained in:
Harry Mellor
2025-03-02 17:34:51 -08:00
committed by GitHub
parent bf33700ecd
commit cf069aa8aa
300 changed files with 2294 additions and 2347 deletions
+3 -2
View File
@@ -2,8 +2,9 @@
import os
import threading
from collections.abc import Iterable
from concurrent import futures
from typing import Callable, Dict, Iterable, Literal
from typing import Callable, Literal
import grpc
import pytest
@@ -25,7 +26,7 @@ FieldName = Literal['bool_value', 'string_value', 'int_value', 'double_value',
def decode_value(value: AnyValue):
field_decoders: Dict[FieldName, Callable] = {
field_decoders: dict[FieldName, Callable] = {
"bool_value": (lambda v: v.bool_value),
"string_value": (lambda v: v.string_value),
"int_value": (lambda v: v.int_value),