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

Function type_

nonebot/internal/driver/combine.py:35–40  ·  view source on GitHub ↗
(self: "CombinedDriver")

Source from the content-addressed store, hash-verified

33 return driver
34
35 def type_(self: "CombinedDriver") -> str:
36 return (
37 driver.type.__get__(self) # type: ignore
38 + "+"
39 + "+".join(x.type.__get__(self) for x in mixins) # type: ignore
40 )
41
42 return type("CombinedDriver", (*mixins, driver), {"type": property(type_)}) # type: ignore

Callers

nothing calls this directly

Calls 2

__get__Method · 0.80
joinMethod · 0.45

Tested by

no test coverage detected