<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_direct_deps(self, target: Target):
 """Generate only direct dependencies of `target`."""

        yield from (self.targets[dep_name] for dep_name in sorted(target.deps))