def hydrate_target(target_adaptor, hydrated_fields):
 kwargs = target_adaptor.kwargs()
 for field in hydrated_fields:
  kwargs[field.name] = field.value
 return HydratedTarget(target_adaptor.address, TargetAdaptor(**kwargs), tuple(target_adaptor.dependencies))

def hydrate_target ( target_adaptor , hydrated_fields ) : kwargs = target_adaptor . kwargs ( ) for field in hydrated_fields : kwargs [ field . name ] = field . value return HydratedTarget ( target_adaptor . address , TargetAdaptor ( ** kwargs ) , tuple ( target_adaptor . dependencies ) )
construct a hydratedtarget from a targetadaptor and hydrated versions of its adapted fields .