Skip to content

Commit

Permalink
style: Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Apr 3, 2022
1 parent f0129ef commit 003789e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/griffe/docstrings/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def _read_yields_section( # noqa: WPS231
name, annotation, description = match.groups()
description = "\n".join([description.lstrip(), *yield_lines[1:]]).rstrip("\n")

if annotation and docstring.parent is not None:
if annotation:
# try to compile the annotation to transform it into an expression
annotation = parse_annotation(annotation, docstring)
else:
Expand Down

0 comments on commit 003789e

Please # to comment.