MCPcopy
hub / github.com/nonebot/nonebot2 / ClassDependency

Class ClassDependency

tests/plugins/param/param_depend.py:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34@dataclass
35class ClassDependency:
36 x: int = Depends(gen_sync)
37 y: int = Depends(gen_async)
38
39
40class FooBot(Bot): ...

Callers 1

test_dependFunction · 0.90

Calls 1

DependsFunction · 0.90

Tested by 1

test_dependFunction · 0.72