summaryrefslogtreecommitdiff
path: root/sphinx/ext/napoleon
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2022-01-09 16:58:49 +0000
committerAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-06-03 13:15:44 +0100
commit4e4813099bffde35b0c1d3f12eeac85420ad447b (patch)
tree9074a9965990647e2994c3b7a7295a488c40c639 /sphinx/ext/napoleon
parent89210fc2756eaf0fc1bbcf3eccb7a9f9f690b820 (diff)
downloadsphinx-git-4e4813099bffde35b0c1d3f12eeac85420ad447b.tar.gz
remove unnecessary generators (C400, C401)
Diffstat (limited to 'sphinx/ext/napoleon')
-rw-r--r--sphinx/ext/napoleon/docstring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/napoleon/docstring.py b/sphinx/ext/napoleon/docstring.py
index a11424537..d866594a3 100644
--- a/sphinx/ext/napoleon/docstring.py
+++ b/sphinx/ext/napoleon/docstring.py
@@ -931,12 +931,12 @@ def _tokenize_type_spec(spec: str) -> List[str]:
else:
return [item]
- tokens = list(
+ tokens = [
item
for raw_token in _token_regex.split(spec)
for item in postprocess(raw_token)
if item
- )
+ ]
return tokens