def make_class_postinject_decorator(classkey, modname=None):
    """
    Args:
        classkey : the class to be injected into
        modname : the global __name__ of the module youa re injecting from

    Returns:
        closure_decorate_postinject (func): decorator for injectable methods

    SeeAlso:
        make_class_method_decorator
    """
    if util_arg.VERBOSE or VERBOSE_CLASS:
        print('[util_class] register class_postinject classkey=%r, modname=%r'
              % (classkey, modname))
    if modname == '__main__':
        print('WARNING: cannot register class functions as __main__')
        # skips reinjects into main
        return lambda func: func
    closure_decorate_postinject = functools.partial(decorate_postinject,
                                                    classkey=classkey)
    return closure_decorate_postinject
def make_class_postinject_decorator ( classkey , modname = None ) : if util_arg . VERBOSE or VERBOSE_CLASS : print ( '[util_class] register class_postinject classkey=%r, modname=%r' % ( classkey , modname ) ) if modname == '__main__' : print ( 'WARNING: cannot register class functions as __main__' ) return lambda func : func closure_decorate_postinject = functools . partial ( decorate_postinject , classkey = classkey ) return closure_decorate_postinject
Args:
        classkey : the class to be injected into
        modname : the global __name__ of the module youa re injecting from

    Returns:
        closure_decorate_postinject (func): decorator for injectable methods

    SeeAlso:
        make_class_method_decorator