From 5744760f0dfa593e07ec7c059f63d0caa20762c5 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Mon, 17 Aug 2020 14:45:42 -0700 Subject: [PATCH] [metadata] update return type of ParentNodeProvider to be CSTNode --- libcst/metadata/parent_node_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcst/metadata/parent_node_provider.py b/libcst/metadata/parent_node_provider.py index fa36e94df..1e569d51e 100644 --- a/libcst/metadata/parent_node_provider.py +++ b/libcst/metadata/parent_node_provider.py @@ -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))