diff --git a/sdks/python/apache_beam/metrics/cells.py b/sdks/python/apache_beam/metrics/cells.py index 9a62cae14691..b765c830f69c 100644 --- a/sdks/python/apache_beam/metrics/cells.py +++ b/sdks/python/apache_beam/metrics/cells.py @@ -826,7 +826,7 @@ def __repr__(self) -> str: def get_cumulative(self) -> "BoundedTrieData": return copy.deepcopy(self) - def get_result(self) -> set[tuple]: + def get_result(self) -> Set[tuple]: if self._root is None: if self._singleton is None: return set()