[docs]classString:"""A class to register accessor and instance methods."""
[docs]@classmethoddefregister(cls,names:List[str]):"""A function decorator that adds accessor and instance methods for specified data type. Parameters ---------- names : `List[str]` A list of names used to register the function as a method. Returns ------- Callable A decorated function. """defwrapper(func):StringMethods.register_method(func,names)StringMixin.register_method(func,names)returnfuncreturnwrapper