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

Method __init__

glados/whisper_cpp_wrapper.py:28–34  ·  view source on GitHub ↗
(self, seq)

Source from the content-addressed store, hash-verified

26
27class UserString:
28 def __init__(self, seq):
29 if isinstance(seq, bytes):
30 self.data = seq
31 elif isinstance(seq, UserString):
32 self.data = seq.data[:]
33 else:
34 self.data = str(seq).encode()
35
36 def __bytes__(self):
37 return self.data

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected