temporalio.activity._Definition
@classmethod
def get_name_and_result_type(cls, name_or_run_fn: str | Callable[..., Any]) -> tuple[str, type | None]: (source) ¶
str | Callable[..., Any]
tuple[str, type | None]
Undocumented
@staticmethod
def from_callable(fn: Callable) -> _Definition | None: (source) ¶
Callable
_Definition | None
def must_from_callable(fn: Callable) -> _Definition: (source) ¶
_Definition
def __post_init__(self): (source) ¶
arg_types: list[type] | None = (source) ¶
list[type] | None
fn: Callable = (source) ¶
is_async: bool = (source) ¶
bool
name: str | None = (source) ¶
str | None
no_thread_cancel_exception: bool = (source) ¶
ret_type: type | None = (source) ¶
type | None
def _apply_to_callable(fn: Callable, *, activity_name: str | None, no_thread_cancel_exception: bool = False): (source) ¶