summaryrefslogtreecommitdiff
path: root/doc/development/tutorials
diff options
context:
space:
mode:
authordanieleades <33452915+danieleades@users.noreply.github.com>2022-09-20 21:30:31 +0100
committerGitHub <noreply@github.com>2022-09-20 21:30:31 +0100
commit276f430b57957771f23355a6a1eb10a55899a677 (patch)
tree93136c96e6db36d6a88d3167bed89a95a25ffebb /doc/development/tutorials
parentd043d96b09825b2bc3875b253f8978a53ccbb493 (diff)
downloadsphinx-git-276f430b57957771f23355a6a1eb10a55899a677.tar.gz
Begin addding `flake8-simplify` checks (#10820)
Start with SIM104 and ignore all other flake8-simplify warnings
Diffstat (limited to 'doc/development/tutorials')
-rw-r--r--doc/development/tutorials/examples/recipe.py3
1 files changed, 1 insertions, 2 deletions
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):