

@cached_property
def view(self):
    '\n        Import view from string and cache it to current class instance.\n        '
    imported = import_string(self.import_name)
    if (isinstance(imported, type) and issubclass(imported, View)):
        view_name = self.import_name.lower().replace('view', '')
        return imported.as_view(self)
    return imported

dataset/ETHPy150Open playpauseandstop/Flask-LazyViews/flask_lazyviews/utils.py LazyView.view/VarMisuse@65/107 `view_name`->`self`