INNER CODE UNIT · Python
_local_state
modal-labs/modal-client · py/modal/app.py:189
def _local_state(self) -> _LocalAppState:
"""For internal use only. Do not use this property directly."""
if self._local_state_attr is None:
raise AttributeError("Local state is not initialized - app is not locally available")
return self._local_state_attr
def __init__(
self,
name: str | None = None,
*,
tags: dict[str, str] | None = None,
image: _Image | None = None,
secrets: Sequence[_Secret] = [],
volumes: dict[str | PurePosixPath, _Volume] = {},
include_source: bool = True,
) -> None:
"""Construct a new app, optionally with default image, mounts, secrets, or volumes.