Skip to content

Commit

Permalink
fix: Fix getting arguments annotations in the Google-style parser
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Sep 28, 2021
1 parent f805eba commit 8bcbfba
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 @@ -198,7 +198,7 @@ def read_arguments(docstring: Docstring, start_index: int) -> tuple[list[Docstri
name = name_with_type
# try to use the annotation from the signature
try:
annotation = docstring.parent.arguments[name] # type: ignore
annotation = docstring.parent.arguments[name].annotation # type: ignore
except (AttributeError, KeyError):
annotation = None

Expand Down

0 comments on commit 8bcbfba

Please sign in to comment.