diff options
Diffstat (limited to 'sphinx/ext/napoleon/docstring.py')
-rw-r--r-- | sphinx/ext/napoleon/docstring.py | 4 |
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 |