From 920828fe351b9e542206749e2ddf04a2cd17a6f3 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 17 Oct 2022 15:54:59 +0100 Subject: Run the ``pyupgrade`` tool --- doc/development/tutorials/examples/recipe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/development/tutorials/examples/recipe.py') diff --git a/doc/development/tutorials/examples/recipe.py b/doc/development/tutorials/examples/recipe.py index 8dc53fdd6..845628864 100644 --- a/doc/development/tutorials/examples/recipe.py +++ b/doc/development/tutorials/examples/recipe.py @@ -140,8 +140,8 @@ class RecipeDomain(Domain): def add_recipe(self, signature, ingredients): """Add a new recipe to the domain.""" - name = '{}.{}'.format('recipe', signature) - anchor = 'recipe-{}'.format(signature) + name = f'recipe.{signature}' + anchor = f'recipe-{signature}' self.data['recipe_ingredients'][name] = ingredients # name, dispname, type, docname, anchor, priority -- cgit v1.2.1