

def merge_resolver_tags(source_resolver, target_resolver):
    if (not hasattr(source_resolver, '_resolver_tags')):
        return target_resolver
    if (not hasattr(target_resolver, '_resolver_tags')):
        target_resolver._resolver_tags = set()
    target_resolver._resolver_tags |= source_resolver._resolver_tags
    return target_resolver

dataset/ETHPy150Open graphql-python/graphql-core/graphql/core/execution/middlewares/utils.py merge_resolver_tags/original