API: SeparateClassMethod¶
- class advanced_descriptors.SeparateClassMethod[source]¶
Separate class method and instance methods.
- __init__(imeth=None, cmeth=None)[source]¶
- Parameters:
imeth (
Callable[..., _MethodReturnT] | None
) – Instance methodcmeth (
Callable[..., _ClassMethodReturnT] | None
) – Class method
- instance_method(imeth)[source]¶
Descriptor to change instance method.
- Parameters:
imeth (
Callable[..., _MethodReturnT] | None
) – New instance method.- Return type:
SeparateClassMethod
- imeth¶
Callable[..., _MethodReturnT] | None
Instance method instance.
- cmeth¶
Callable[..., _ClassMethodReturnT] | None
Class method instance.