API: SeparateClassMethod

class advanced_descriptors.SeparateClassMethod[source]

Separate class method and instance methods.

__init__(imeth=None, cmeth=None)[source]
Parameters:
  • imeth (typing.Optional[typing.Callable]) – Instance method
  • cmeth (typing.Optional[typing.Callable]) – Class method
instance_method(imeth)[source]

Descriptor to change instance method.

Parameters:imeth (typing.Optional[typing.Callable]) – New instance method.
Return type:SeparateClassMethod
class_method(cmeth)[source]

Descriptor to change class method.

Return type:SeparateClassMethod
imeth

typing.Optional[typing.Callable] Instance method instance.

cmeth

typing.Optional[typing.Callable] Class method instance.