def custom_flair_images() -> sass.SassMap: """reads directory and produces a map of flairs""" flairs_dir: Path = (Path(__file__).resolve().parents[2] / "assets" / "flairs") return sass.SassMap({ subdir.name: flairs_list(subdir) for subdir in (dir for dir in flairs_dir.iterdir() if dir.is_dir() and not dir.stem.startswith('_')) })
def returns_map(): return sass.SassMap([('foo', 'bar')])