def __call__(cls, *args, **kwargs):
        """Hook __init__ call to push resource instance into Swimlane client ResourceCache after instantiation"""
        resource_instance = type.__call__(cls, *args, **kwargs)

        resource_instance._swimlane.resources_cache.cache(resource_instance)

        return resource_instance
def __call__ ( cls , * args , ** kwargs ) : resource_instance = type . __call__ ( cls , * args , ** kwargs ) resource_instance . _swimlane . resources_cache . cache ( resource_instance ) return resource_instance
Hook __init__ call to push resource instance into Swimlane client ResourceCache after instantiation