pyschema/core.py
def from_class(metacls, cls, auto_store=True):
        """Create proper PySchema class from cls

        Any methods and attributes will be transferred to the
        new object
        """
        if auto_store:
            def wrap(cls):
                return cls
        else:
            wrap = no_auto_store()

        return wrap(metacls.__new__(
            metacls,
            cls.__name__,
            (Record,),
            dict(cls.__dict__)
        ))
def from_class(metacls, cls, auto_store=True):
        if auto_store:
            def wrap(cls):
                return cls
        else:
            wrap = no_auto_store()

        return wrap(metacls.__new__(
            metacls,
            cls.__name__,
            (Record,),
            dict(cls.__dict__)
        ))
def from_class ( metacls , cls , auto_store = True ) : if auto_store : def wrap ( cls ) : return cls else : wrap = no_auto_store ( ) return wrap ( metacls . __new__ ( metacls , cls . __name__ , ( Record , ) , dict ( cls . __dict__ ) ) )
Create proper PySchema class from cls

        Any methods and attributes will be transferred to the
        new object
Create proper PySchema class from cls