Function is_config_class

Synopsis

def is_config_class(obj)

Description

Returns True if the config class definition is registered with anyfig

Source

Lines 48-54 in anyfig/figutils.py.

def is_config_class(obj):
  ''' Returns True if the config class definition is registered with anyfig '''
  if type(obj) != type(type):
    obj = type(obj)
  return inspect.isclass(obj) and obj.__name__ in registered_config_classes






Add Discussion as Guest

Log in