class documentation
class JSONableMethodDescriptor(Generic[
A descriptor that can bind methods into JSONableBoundMethods.
| See Also | |
JSONRegistry.method |
| Method | __get__ |
Bind the decorated method to an instance. |
| Method | __set |
Register the class of the decorated method when the decorator is registered with the class, via the protocol of object.__set_name__. |
| Instance Variable | func |
The callable underlying method function. |
| Instance Variable | registry |
The JSONRegistry which created this descriptor. |
def __get__(self, instance:
JSONableSelf, owner: object = None) -> JSONableBoundMethod[ JSONableSelf]:
(source)
¶
Bind the decorated method to an instance.
Register the class of the decorated method when the decorator is registered with the class, via the protocol of object.__set_name__.