py2: kpi: Add @staticmethod in between @func and __new__
Else on py2 it breaks as e.g. TypeError: unbound method __new__() must be called with Measurement instance as first argument (got type instance instead) On py3 it works ok without explicit @staticmethod -> probably something to fix on pygolang side.
Showing
Please register or sign in to comment