MCPcopy Create free account
hub / github.com/Louisym/MiniCC / __str__

Method __str__

tutorials/04_permission_system.py:47–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 DANGER_FULL_ACCESS = 3 # 可以做任何事情(包括执行危险命令)
46
47 def __str__(self):
48 names = {1: "read-only", 2: "workspace-write", 3: "danger-full-access"}
49 return names[self.value]
50
51
52# 两个特殊模式(不属于等级,是行为模式)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected