MCPcopy Create free account
hub / github.com/vispy/vispy / rawmethod

Method rawmethod

vispy/ext/cocoapy.py:833–843  ·  view source on GitHub ↗
(self, encoding)

Source from the content-addressed store, hash-verified

831 self._imp_table[name] = imp
832
833 def rawmethod(self, encoding):
834 encoding = ensure_bytes(encoding)
835 typecodes = parse_type_encoding(encoding)
836 typecodes.insert(1, b'@:')
837 encoding = b''.join(typecodes)
838
839 def decorator(f):
840 name = f.__name__.replace('_', ':')
841 self.add_method(f, name, encoding)
842 return f
843 return decorator
844
845 def method(self, encoding):
846 encoding = ensure_bytes(encoding)

Callers

nothing calls this directly

Calls 3

ensure_bytesFunction · 0.85
parse_type_encodingFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected