chadrik commented on a change in pull request #13004:
URL: https://github.com/apache/beam/pull/13004#discussion_r499056525
##########
File path: sdks/python/apache_beam/transforms/userstate.py
##########
@@ -305,23 +323,37 @@ def validate_stateful_dofn(dofn):
(timer_spec, method_name, dofn))
-class RuntimeTimer(object):
+class BaseTimer(object):
Review comment:
I added a base class so that I could have a return type for
`UserStateContext.get_timer()`. Also see `bundle_processor. OutputTimer` (at
the top of the PR).
An alternative to this would be to create a `Protocol`, but that seemed
needlessly complex.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]