fsspec/utils.py
def mirror_from(origin_name, methods):
    """Mirror attributes and methods from the given
    origin_name attribute of the instance to the
    decorated class"""

    def origin_getter(method, self):
        origin = getattr(self, origin_name)
        return getattr(origin, method)

    def wrapper(cls):
        for method in methods:
            wrapped_method = partial(origin_getter, method)
            setattr(cls, method, property(wrapped_method))
        return cls

    return wrapper
Mirror attributes and methods from the given
    origin_name attribute of the instance to the
    decorated class
Mirror attributes and methods from the given
origin_name attribute of the instance to the
decorated class
Mirror attributes and methods from the given origin_name attribute of the instance to the decorated class
def mirror_from(origin_name, methods):
    def origin_getter(method, self):
        origin = getattr(self, origin_name)
        return getattr(origin, method)
    def wrapper(cls):
        for method in methods:
            wrapped_method = partial(origin_getter, method)
            setattr(cls, method, property(wrapped_method))
        return cls
    return wrapper
def mirror_from ( origin_name , methods ) : def origin_getter ( method , self ) : origin = getattr ( self , origin_name ) return getattr ( origin , method ) def wrapper ( cls ) : for method in methods : wrapped_method = partial ( origin_getter , method ) setattr ( cls , method , property ( wrapped_method ) ) return cls return wrapper
Mirror attributes and methods from the given
origin_name attribute of the instance to the
decorated class
Mirror attributes and methods from the given origin_name attribute of the instance to the decorated class
"""Mirror attributes and methods from the given
    origin_name attribute of the instance to the
    decorated class"""
origin_name
methods