MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / get_func

Method get_func

doc/sphinxext/docscrape.py:453–459  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

451 self['Signature'] = signature
452
453 def get_func(self):
454 func_name = getattr(self._f, '__name__', self.__class__.__name__)
455 if inspect.isclass(self._f):
456 func = getattr(self._f, '__call__', self._f.__init__)
457 else:
458 func = self._f
459 return func, func_name
460
461 def __str__(self):
462 out = ''

Callers 2

__init__Method · 0.95
__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected