Skip to content

Commit

Permalink
Add Generic to PredictionResult
Browse files Browse the repository at this point in the history
  • Loading branch information
yeandy committed Jun 10, 2022
1 parent 52581a6 commit a273b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdks/python/apache_beam/ml/inference/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@

@dataclass
class PredictionResult:
example: _INPUT_TYPE
inference: _OUTPUT_TYPE
example: Generic[_INPUT_TYPE]
inference: Generic[_OUTPUT_TYPE]


def _to_milliseconds(time_ns: int) -> int:
Expand Down

0 comments on commit a273b05

Please sign in to comment.