shunping commented on code in PR #34897: URL: https://github.com/apache/beam/pull/34897#discussion_r2082249617
########## sdks/python/apache_beam/ml/anomaly/transforms.py: ########## @@ -37,13 +38,16 @@ from apache_beam.ml.anomaly.specifiable import Specifiable from apache_beam.ml.inference.base import RunInference from apache_beam.transforms.userstate import ReadModifyWriteStateSpec +from apache_beam.typehints.typehints import TupleConstraint KeyT = TypeVar('KeyT') -TempKeyT = TypeVar('TempKeyT', bound=int) -InputT = tuple[KeyT, beam.Row] -KeyedInputT = tuple[KeyT, tuple[TempKeyT, beam.Row]] -KeyedOutputT = tuple[KeyT, tuple[TempKeyT, AnomalyResult]] -OutputT = tuple[KeyT, AnomalyResult] +TempKeyT = TypeVar('TempKeyT', bound=str) +InputT = beam.Row +OutputT = AnomalyResult Review Comment: Ack. I will keep those for now in case we want to add alternative input or output types later. -- 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: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org