From be1252cebfca08a57ad84877ef57545940be75eb Mon Sep 17 00:00:00 2001 From: Steven Troxler Date: Tue, 19 Oct 2021 11:14:13 -0700 Subject: [PATCH] Remove a dead method in ApplyTypeAnnotationsVisitor I'm not really sure how the method got there, but it was calling itself recursively... fortunately, it was also overwritten by an identically named method so it was actually impossible to access. --- libcst/codemod/visitors/_apply_type_annotations.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libcst/codemod/visitors/_apply_type_annotations.py b/libcst/codemod/visitors/_apply_type_annotations.py index 9b170de1e..129ec2086 100644 --- a/libcst/codemod/visitors/_apply_type_annotations.py +++ b/libcst/codemod/visitors/_apply_type_annotations.py @@ -257,17 +257,6 @@ def __init__( # insert top-level annotations. self.import_statements: List[cst.ImportFrom] = [] - @staticmethod - def store_stub_in_context( - context: CodemodContext, - stub: cst.Module, - overwrite_existing_annotations: bool = False, - ) -> None: - # deprecated, should be removed in 0.4 release. - ApplyTypeAnnotationsVisitor.store_stub_in_context( - context, stub, overwrite_existing_annotations - ) - @staticmethod def store_stub_in_context( context: CodemodContext,