From 276f430b57957771f23355a6a1eb10a55899a677 Mon Sep 17 00:00:00 2001 From: danieleades <33452915+danieleades@users.noreply.github.com> Date: Tue, 20 Sep 2022 21:30:31 +0100 Subject: Begin addding `flake8-simplify` checks (#10820) Start with SIM104 and ignore all other flake8-simplify warnings --- doc/development/tutorials/examples/recipe.py | 3 +-- 1 file changed, 1 insertion(+), 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 f917f15c9..8dc53fdd6 100644 --- a/doc/development/tutorials/examples/recipe.py +++ b/doc/development/tutorials/examples/recipe.py @@ -120,8 +120,7 @@ class RecipeDomain(Domain): return '{}.{}'.format('recipe', node.arguments[0]) def get_objects(self): - for obj in self.data['recipes']: - yield obj + yield from self.data['recipes'] def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode): -- cgit v1.2.1