INNER CODE UNIT · Python
app
modal-labs/modal-client · py/modal/app.py:81
def app(self) -> "_App":
return self._app
LocalEntrypoint = synchronize_api(_LocalEntrypoint)
def check_sequence(items: typing.Sequence[typing.Any], item_type: type[typing.Any], error_msg: str) -> None:
if not isinstance(items, (list, tuple)):
raise InvalidError(error_msg)
if not all(isinstance(v, item_type) for v in items):
raise InvalidError(error_msg)
CLS_T = typing.TypeVar("CLS_T", bound=type[Any])
P = typing_extensions.ParamSpec("P")