roger-mike commented on a change in pull request #16522:
URL: https://github.com/apache/beam/pull/16522#discussion_r794035759
##########
File path: sdks/python/apache_beam/utils/timestamp.py
##########
@@ -269,6 +269,9 @@ def __mod__(self, other):
other = Duration.of(other)
return Duration(micros=self.micros % other.micros)
+ def __neg__(self):
+ return -self.micros
+
Review comment:
I deleted the `__neg__` implementation because it is not supported. I
skipped the warning in the lines where `-Timestamp()` was being used.
--
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]