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

Function UNCHECKED

glados/whisper_cpp_wrapper.py:394–398  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

392# Non-primitive return values wrapped with UNCHECKED won't be
393# typechecked, and will be converted to ctypes.c_void_p.
394def UNCHECKED(type):
395 if hasattr(type, "_type_") and isinstance(type._type_, str) and type._type_ != "P":
396 return type
397 else:
398 return ctypes.c_void_p
399
400
401# ctypes doesn't have direct support for variadic functions, so we have to write

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected