为类设置代理 method

def method(self, name: str, rename: Optional[str] = None) -> 'ProxyAttr':
        """
        为类设置代理 method
        """
        if rename is None:
            rename = name
        if self.reuse_handle(name, rename, self._method):
            return self

        def proxy_method(self2: Any, *args: Any, **kwargs: Any) -> Any:
            """
            代理 method
            """
            return getattr(getattr(self2, self._target), name)(*args, **kwargs)
        self._func_map[name] = proxy_method
        setattr(self._proto, name, proxy_method)
        self._method[name] = {rename}
        return self