MCPcopy Create free account
hub / github.com/LeelaChessZero/lc0 / function_meth_flags

Method function_meth_flags

scripts/pybind/functions.py:96–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 return self.param_typ or Function.TypeFromParameters(self.parameters)
95
96 def function_meth_flags(self):
97 return {
98 FunctionType.METH_KEYWORDS: 'METH_VARARGS | METH_KEYWORDS',
99 FunctionType.METH_NOARGS: 'METH_NOARGS',
100 FunctionType.METH_FASTCALL: 'METH_FASTCALL',
101 }[self.param_type()]
102
103 def _return_cpp_type(self):
104 return 'PyObject*'

Callers 2

function_meth_flagsMethod · 0.45

Calls 1

param_typeMethod · 0.95

Tested by

no test coverage detected