def _callback_argspec(callback):
 if (not callable(callback)):
  raise ValueError('Callbacks must be callables')
 if (isfunction(callback) or ismethod(callback)):
  return getargspec(callback)
 elif isinstance(callback, partial):
  return getargspec(callback.func)
 else:
  return getargspec(callback.__call__)

def _callback_argspec ( callback ) : if ( not callable ( callback ) ) : raise ValueError ( 'Callbacks must be callables' ) if ( isfunction ( callback ) or ismethod ( callback ) ) : return getargspec ( callback ) elif isinstance ( callback , partial ) : return getargspec ( callback . func ) else : return getargspec ( callback . __call__ )
bokeh-internal function to get argspec for a callable .