def expand_dirs_in_lintables(lintables: Set[Lintable]) -> None:
    'Return all recognized lintables within given directory.'
    should_expand = False
    for item in lintables:
        if item.path.is_dir():
            should_expand = True
            break
    if should_expand:
        all_files = discover_lintables(options)
        for item in copy.copy(lintables):
            if item.path.is_dir():
                for filename in all_files:
                    if filename.startswith(str(item.path)):
                        lintables.add(Lintable(filename))
Return all recognized lintables within given directory.
def expand_dirs_in_lintables(lintables: Set[Lintable]) -> None:
    
    should_expand = False
    for item in lintables:
        if item.path.is_dir():
            should_expand = True
            break
    if should_expand:
        all_files = discover_lintables(options)
        for item in copy.copy(lintables):
            if item.path.is_dir():
                for filename in all_files:
                    if filename.startswith(str(item.path)):
                        lintables.add(Lintable(filename))