From dc0fdc4d127f85c74f5f485f381f151b5b3e5d3c Mon Sep 17 00:00:00 2001 From: Xuan Wang Date: Tue, 30 Jan 2024 13:16:34 -0800 Subject: [PATCH] [Python PSM Interop] Use FrozenSet (#35759) Closes #35759 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35759 from XuanWang-Amos:python_ssa_client_test_part_2 86bd6b1ed57028847be0f16d1559065e5b349f6f PiperOrigin-RevId: 602820831 --- .../grpcio_tests/tests_py3_only/interop/xds_interop_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/grpcio_tests/tests_py3_only/interop/xds_interop_client.py b/src/python/grpcio_tests/tests_py3_only/interop/xds_interop_client.py index d5e994da611..d9634939ea6 100644 --- a/src/python/grpcio_tests/tests_py3_only/interop/xds_interop_client.py +++ b/src/python/grpcio_tests/tests_py3_only/interop/xds_interop_client.py @@ -23,6 +23,7 @@ import time from typing import ( DefaultDict, Dict, + FrozenSet, Iterable, List, Mapping, @@ -84,7 +85,7 @@ class _StatsWatcher: _no_remote_peer: int _lock: threading.Lock _condition: threading.Condition - _metadata_keys: frozenset + _metadata_keys: FrozenSet[str] _include_all_metadata: bool _metadata_by_peer: DefaultDict[ str, messages_pb2.LoadBalancerStatsResponse.MetadataByPeer