@staticmethod
PYL-R0201264 self.__verify_rule(rulename)
265 logging.info("verification done")
266
267 def __log_branch(self, fmt, branch, sequence):268 s =' '.join(sequence) + ' < ' + ' < '.join(reversed(branch))
269 logging.info(fmt, s)
270
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.