From 789e0e05d4f4c9955710f6b8f418b9ce88a1f227 Mon Sep 17 00:00:00 2001 From: Lukas Greve Date: Fri, 27 Mar 2026 11:07:53 +0100 Subject: [PATCH] refactor: Remove deprecated ingredients_dir parameter from RecipeGenerator Simplify RecipeGenerator.__init__() to accept only templates_file parameter. The old two-argument pattern RecipeGenerator(ingredients_dir, templates_file) is no longer supported. All existing code already uses the new single-argument style. Changes: - Remove ingredients_dir_or_templates parameter - Remove backward compatibility logic - Remove unused Optional import - Update DEVELOPMENT.md example Migration: Change RecipeGenerator(Path('ingredients'), Path('templates.yaml')) to RecipeGenerator(Path('templates.yaml')) --- DEVELOPMENT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 8f88fe3..ba84780 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -836,7 +836,7 @@ from pathlib import Path import sys sys.path.insert(0, '.') from generate_recipe import RecipeGenerator -gen = RecipeGenerator(Path('../ingredients'), Path('recipe_templates.yaml')) +gen = RecipeGenerator(Path('recipe_templates.yaml')) print('Templates:', list(gen.templates.keys())) " ```