Consider decorating method with @staticmethod PYL-R0201
Performance
Major
4 days ago2 years old
Method doesn't use the class instance and could be converted into a static method
300        """Return None."""
301        return None
302
303    def get_requested_time(self, key):304        """Return False."""
305        return False
306
Method doesn't use the class instance and could be converted into a static method
296        """
297        return key in self._cache
298
299    def is_recognised(self, key):300        """Return None."""
301        return None
302
Method doesn't use the class instance and could be converted into a static method
401        self.assertEqual(self._index,
402                         len(self._colors) if self.expect_color else 0)
403
404    def _encounter_color(self, color, target_stream):405        """Patched encounter_color method."""
406        raise AssertionError(
407            'This method should not be invoked')  # pragma: no cover
Method doesn't use the class instance and could be converted into a static method
191        self.foo = foo
192        return foo
193
194    def undecorated_method(self, foo=None):195        """Not deprecated instance method."""
196        return foo
197
Method doesn't use the class instance and could be converted into a static method
178            def encoding(self):
179                return 'utf-8'
180
181            def encodings(self):182                return []
183
184            @property