@staticmethod
PYL-R0201300 """Return None."""
301 return None
302
303 def get_requested_time(self, key):304 """Return False."""
305 return False
306
296 """
297 return key in self._cache
298
299 def is_recognised(self, key):300 """Return None."""
301 return None
302
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
191 self.foo = foo
192 return foo
193
194 def undecorated_method(self, foo=None):195 """Not deprecated instance method."""
196 return foo
197
178 def encoding(self):
179 return 'utf-8'
180
181 def encodings(self):182 return []
183
184 @property
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.