From 8a083b2e95cb38a0f8e7cf6a4f0036df2d8b6cd7 Mon Sep 17 00:00:00 2001 From: Steven Troxler Date: Tue, 25 Jan 2022 09:07:21 -0800 Subject: [PATCH] Fix wrong return type --- libcst/codemod/commands/convert_type_comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcst/codemod/commands/convert_type_comments.py b/libcst/codemod/commands/convert_type_comments.py index cea5c408a..7da1378d1 100644 --- a/libcst/codemod/commands/convert_type_comments.py +++ b/libcst/codemod/commands/convert_type_comments.py @@ -811,7 +811,7 @@ def leave_ClassDef( self, original_node: cst.ClassDef, updated_node: cst.ClassDef, - ) -> None: + ) -> cst.ClassDef: """ Keep track of when we are and are not inside of classes, to help with heuristics to handle methods correctly.