MCPcopy Create free account
hub / github.com/Tong89/smartNode / _make_task

Function _make_task

tests/test_content_value.py:26–30  ·  view source on GitHub ↗

构造 ContentTask 并设置创建时刻。

(task_type: str, creation_time: float = 0.0)

Source from the content-addressed store, hash-verified

24# --------------------------------------------------------------------------- #
25
26def _make_task(task_type: str, creation_time: float = 0.0) -> ContentTask:
27 """构造 ContentTask 并设置创建时刻。"""
28 task = ContentTask(task_type)
29 task.creation_time = creation_time
30 return task
31
32
33# --------------------------------------------------------------------------- #

Calls 1

ContentTaskClass · 0.90

Tested by

no test coverage detected