def __init__(self, *args, **kwargs):
        """
        Get all field names of this class by traversing
        its inheritance hierarchy in reverse order and
        concatenating the names in __slots__.
        """
        super(MetaclassCollectSlots, self).__init__(*args, **kwargs)
        inherited_class_order = reversed(self.__mro__)
        self._fields = tuple(
            chain.from_iterable(
                getattr(cls, '__slots__', [])
                for cls in inherited_class_order))
def __init__ ( self , * args , ** kwargs ) : super ( MetaclassCollectSlots , self ) . __init__ ( * args , ** kwargs ) inherited_class_order = reversed ( self . __mro__ ) self . _fields = tuple ( chain . from_iterable ( getattr ( cls , '__slots__' , [ ] ) for cls in inherited_class_order ) )
Get all field names of this class by traversing
        its inheritance hierarchy in reverse order and
        concatenating the names in __slots__.