MCPcopy
hub / github.com/dnhkng/GLaDOS / __add__

Method __add__

glados/whisper_cpp_wrapper.py:110–116  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

108 return self.__class__(self.data[start:end])
109
110 def __add__(self, other):
111 if isinstance(other, UserString):
112 return self.__class__(self.data + other.data)
113 elif isinstance(other, bytes):
114 return self.__class__(self.data + other)
115 else:
116 return self.__class__(self.data + str(other).encode())
117
118 def __radd__(self, other):
119 if isinstance(other, bytes):

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected