def format_argspec_init(method, grouped=True):
 if (method is object.__init__):
  args = ((grouped and '(self)') or 'self')
 else:
  try:
   return format_argspec_plus(method, grouped=grouped)
  except TypeError:
   args = ((grouped and '(self, *args, **kwargs)') or 'self, *args, **kwargs')
 return dict(self_arg='self', args=args, apply_pos=args, apply_kw=args)

def format_argspec_init ( method , grouped = True ) : if ( method is object . __init__ ) : args = ( ( grouped and '(self)' ) or 'self' ) else : try : return format_argspec_plus ( method , grouped = grouped ) except TypeError : args = ( ( grouped and '(self, *args, **kwargs)' ) or 'self, *args, **kwargs' ) return dict ( self_arg = 'self' , args = args , apply_pos = args , apply_kw = args )
format_argspec_plus with considerations for typical __init__ methods wraps format_argspec_plus with error handling strategies for typical __init__ cases:: object .