jrmccluskey commented on code in PR #38331:
URL: https://github.com/apache/beam/pull/38331#discussion_r3163498548
##########
sdks/python/apache_beam/internal/metrics/metric.py:
##########
@@ -59,7 +57,7 @@ class Metrics(object):
@staticmethod
def counter(
urn: str,
- labels: Optional[Dict[str, str]] = None,
+ labels: Optional[dict[str, str]] = None,
Review Comment:
Beam does not support any Python version older than 3.10.
##########
sdks/python/apache_beam/internal/util.py:
##########
@@ -68,9 +64,9 @@ def __hash__(self):
def remove_objects_from_args(
args: Iterable[Any],
- kwargs: Dict[str, Any],
- pvalue_class: Union[Type[T], Tuple[Type[T], ...]]
-) -> Tuple[List[Any], Dict[str, Any], List[T]]:
+ kwargs: dict[str, Any],
+ pvalue_class: Union[type[T], tuple[type[T], ...]]
+) -> tuple[list[Any], dict[str, Any], list[T]]:
Review Comment:
Beam does not support any Python version older than 3.10.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]