Skip to content

Commit

Permalink
[metadata] update return type of ParentNodeProvider to be CSTNode (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmylai authored Aug 17, 2020
1 parent 6f9a12c commit dc6e7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcst/metadata/parent_node_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def on_leave(self, original_node: cst.CSTNode) -> None:
super().on_leave(original_node)


class ParentNodeProvider(BatchableMetadataProvider[Optional[cst.CSTNode]]):
class ParentNodeProvider(BatchableMetadataProvider[cst.CSTNode]):
def visit_Module(self, node: cst.Module) -> Optional[bool]:
node.visit(ParentNodeVisitor(self))

0 comments on commit dc6e7ba

Please sign in to comment.