MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / peek

Method peek

Utils/ColorThief.py:417–422  ·  view source on GitHub ↗
(self, index=None)

Source from the content-addressed store, hash-verified

415 self._sorted = False
416
417 def peek(self, index=None):
418 if not self._sorted:
419 self.sort()
420 if index is None:
421 index = len(self.contents) - 1
422 return self.contents[index]
423
424 def pop(self):
425 if not self._sorted:

Callers 2

nearestMethod · 0.80
mapMethod · 0.80

Calls 1

sortMethod · 0.95

Tested by

no test coverage detected