@classmethod
def _get_required_subclass_attrs(cls):
    """Compute set of required subclass attributes."""
    req = set()
    for C in cls.__mro__:
        if hasattr(C, '_required_subclass_attrs'):
            req |= C._required_subclass_attrs
    return req
