INNER CODE UNIT · Python

_validate_blueprint_value

modal-labs/modal-client · py/modal/app.py:403

    def _validate_blueprint_value(self, key: str, value: Any):
        if not isinstance(value, _Object):
            raise InvalidError(f"App attribute `{key}` with value {value!r} is not a valid Modal object")

    @property
    @with_deprecation_warning(
        (2026, 8, 26),
        "`App.image` is deprecated and will be removed in `modal` version 1.6.0",
    )
    def image(self) -> _Image:
        """mdmd:hidden
        Retrieve the Image that will be used as the default for any Functions registered to the App.

        Note: This property is only relevant in the build phase and won't be populated on a deployed
        App that is retrieved via `modal.App.lookup`. It is likely to be deprecated in the future.

        """
        return self._local_state.image_default

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…