MCPcopy Index your code
hub / github.com/dnhkng/GLaDOS / __setslice__

Method __setslice__

glados/whisper_cpp_wrapper.py:299–307  ·  view source on GitHub ↗
(self, start, end, sub)

Source from the content-addressed store, hash-verified

297 self.data = self.data[:index] + self.data[index + 1 :]
298
299 def __setslice__(self, start, end, sub):
300 start = max(start, 0)
301 end = max(end, 0)
302 if isinstance(sub, UserString):
303 self.data = self.data[:start] + sub.data + self.data[end:]
304 elif isinstance(sub, bytes):
305 self.data = self.data[:start] + sub + self.data[end:]
306 else:
307 self.data = self.data[:start] + str(sub).encode() + self.data[end:]
308
309 def __delslice__(self, start, end):
310 start = max(start, 0)

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected