def extract_deps(fd: TextIO) -> Generator[str, None, None]: """Extract dependencies from file.""" yield from ( line for line in fd if line and not line.startswith(('#', 'git+')) ) # Setup values preparation