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

Method __get__

nonebot/utils.py:381–382  ·  view source on GitHub ↗
(self, instance: Any, owner: type[Any] | None = None)

Source from the content-addressed store, hash-verified

379 self.func = func
380
381 def __get__(self, instance: Any, owner: type[Any] | None = None) -> T:
382 return self.func(type(instance) if owner is None else owner)
383
384
385class DataclassEncoder(json.JSONEncoder):

Callers 1

type_Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected