def METHOD_NAME(self, view: type[View] | str) -> type[View]:
    logger.debug('loading %s', view)
    if isinstance(view, str):
        try:
            view = self.server.acquire(view)
        except Exception as exception:
            logger.exception("exception raised while importing '%s'", view)
            view = self._generate_acquiring_error_view(exception)
    return cast('type[View]', view)