def merge_service_dicts_from_files(base, override, version):
 new_service = merge_service_dicts(base, override, version)
 if (u'extends' in override):
  new_service[u'extends'] = override[u'extends']
 elif (u'extends' in base):
  new_service[u'extends'] = base[u'extends']
 return new_service

def merge_service_dicts_from_files ( base , override , version ) : new_service = merge_service_dicts ( base , override , version ) if ( u'extends' in override ) : new_service [ u'extends' ] = override [ u'extends' ] elif ( u'extends' in base ) : new_service [ u'extends' ] = base [ u'extends' ] return new_service
when merging services from multiple files we need to merge the extends field .