Skip to content

Commit

Permalink
fix: Fix list annotation getter
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Nov 13, 2021
1 parent ef27dcd commit 5ae800a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/griffe/node_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _get_tuple_annotation(node: NodeTuple, parent: Class | Module) -> Expression


def _get_list_annotation(node: NodeList, parent: Class | Module) -> Expression:
return Expression(*_join([get_annotation(el, parent) for el in node.elts], ", "))
return Expression("[", *_join([get_annotation(el, parent) for el in node.elts], ", "), "]")


_node_annotation_map = {
Expand Down

0 comments on commit 5ae800a

Please sign in to comment.