MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / generate_from_obj

Method generate_from_obj

tools/PythonExtensionChecker.py:544–551  ·  view source on GitHub ↗

Attaches the functionality of this object to the given input object

(mdef)

Source from the content-addressed store, hash-verified

542
543 @staticmethod
544 def generate_from_obj(mdef):
545 """Attaches the functionality of this object to the given input object"""
546 for k,v in DoxygenCppFunction.__dict__.items():
547 if callable(v) and not k == "__init__":
548 import types
549 mdef.__dict__[k] = types.MethodType(v, mdef)
550 mdef.initialize_dgencpp()
551 return mdef
552
553 @staticmethod
554 def generate_imports(imports):

Callers 1

iterMemberDefMethod · 0.80

Calls 1

initialize_dgencppMethod · 0.80

Tested by

no test coverage detected