def target_internal_dependencies(target):
 for dep in target.dependencies:
  if isinstance(dep, Jarable):
   (yield dep)
  else:
   for childdep in target_internal_dependencies(dep):
    (yield childdep)

def target_internal_dependencies ( target ) : for dep in target . dependencies : if isinstance ( dep , Jarable ) : ( yield dep ) else : for childdep in target_internal_dependencies ( dep ) : ( yield childdep )
returns internal jarable dependencies that were "directly" declared .