@staticmethod
PYL-R020124 def _right_node(self):
25 return self._node["right_child"]
26
27 def _missing_node(self):28 return None
29
30 def _split_value(self):
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.