You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@heron.apache.org by GitBox <gi...@apache.org> on 2022/04/03 20:12:39 UTC

[GitHub] [incubator-heron] surahman commented on a diff in pull request #3786: Fix for missing physical plan in UI

surahman commented on code in PR #3786:
URL: https://github.com/apache/incubator-heron/pull/3786#discussion_r841271672


##########
heron/instance/src/python/utils/metrics/py_metrics.py:
##########
@@ -80,7 +80,7 @@ def __init__(self, metrics_collector):
                     PY_GC_GENERATION_1_THRESHOLD: self.g1_threshold,
                     PY_GC_GENERATION_2_THRESHOLD: self.g2_threshold,
                     PY_GC_GENERATION_3_THRESHOLD: self.g3_threshold}
-    super(PyMetrics, self).__init__(self.metrics)
+    _ = super()

Review Comment:
   This syntax is analogous to what we have in Golang. I am essentially telling the Python3 interpreter and linter know "Yes, I am aware a value is returned from this function call. No, I do not need it, and yes I wish to ignore it."
   
   Some linters will output a warning about this and it could potentially become an error down the road. Let us not generate/leave technical debt to be dealt with 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: dev-unsubscribe@heron.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org