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

Method AddStaticMethod

scripts/pybind/__init__.py:107–116  ·  view source on GitHub ↗
(self, name, cpp_name=None, *argv, **kwargs)

Source from the content-addressed store, hash-verified

105 return method
106
107 def AddStaticMethod(self, name, cpp_name=None, *argv, **kwargs):
108 method = StaticFunction(
109 name,
110 cpp_type_name=self.cpp_name,
111 cpp_name=cpp_name,
112 gen_function_name=f'F{self.name}StaticMethod{name}',
113 *argv,
114 **kwargs)
115 self.functions.append(method)
116 return method
117
118 def object_struct_name(self):
119 return f'T{self.name}ClassType'

Callers 1

gen_py_bindings.pyFile · 0.80

Calls 1

StaticFunctionClass · 0.85

Tested by

no test coverage detected