From 4cbcb6b5c54e24bd7c875613ed095a1550ded685 Mon Sep 17 00:00:00 2001 From: clavedeluna Date: Thu, 18 Jan 2024 15:48:00 -0300 Subject: [PATCH] remove unused REFERENCES --- src/core_codemods/combine_startswith_endswith.py | 1 - src/core_codemods/fix_mutable_params.py | 2 +- src/core_codemods/remove_debug_breakpoint.py | 1 - src/core_codemods/remove_module_global.py | 1 - src/core_codemods/use_set_literal.py | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core_codemods/combine_startswith_endswith.py b/src/core_codemods/combine_startswith_endswith.py index 3f7a0403..8db2d5d8 100644 --- a/src/core_codemods/combine_startswith_endswith.py +++ b/src/core_codemods/combine_startswith_endswith.py @@ -12,7 +12,6 @@ class CombineStartswithEndswith(SimpleCodemod, NameResolutionMixin): references=[], ) change_description = "Use tuple of matches instead of boolean expression" - REFERENCES: list = [] def leave_BooleanOperation( self, original_node: cst.BooleanOperation, updated_node: cst.BooleanOperation diff --git a/src/core_codemods/fix_mutable_params.py b/src/core_codemods/fix_mutable_params.py index f7051b87..f903948d 100644 --- a/src/core_codemods/fix_mutable_params.py +++ b/src/core_codemods/fix_mutable_params.py @@ -11,7 +11,7 @@ class FixMutableParams(SimpleCodemod): references=[], ) change_description = "Replace mutable parameter with `None`." - REFERENCES: list = [] + _BUILTIN_TO_LITERAL = { "list": cst.List(elements=[]), "dict": cst.Dict(elements=[]), diff --git a/src/core_codemods/remove_debug_breakpoint.py b/src/core_codemods/remove_debug_breakpoint.py index e31ccab6..c8f2f1c9 100644 --- a/src/core_codemods/remove_debug_breakpoint.py +++ b/src/core_codemods/remove_debug_breakpoint.py @@ -12,7 +12,6 @@ class RemoveDebugBreakpoint(SimpleCodemod, NameResolutionMixin, AncestorPatterns references=[], ) change_description = "Remove breakpoint call" - REFERENCES: list = [] def leave_Expr( self, diff --git a/src/core_codemods/remove_module_global.py b/src/core_codemods/remove_module_global.py index 0e923780..eff23af5 100644 --- a/src/core_codemods/remove_module_global.py +++ b/src/core_codemods/remove_module_global.py @@ -13,7 +13,6 @@ class RemoveModuleGlobal(SimpleCodemod, NameResolutionMixin): references=[], ) change_description = "Remove `global` usage at module level." - REFERENCES: list = [] def leave_Global( self, diff --git a/src/core_codemods/use_set_literal.py b/src/core_codemods/use_set_literal.py index eb1dfbdc..520a2fc0 100644 --- a/src/core_codemods/use_set_literal.py +++ b/src/core_codemods/use_set_literal.py @@ -11,7 +11,6 @@ class UseSetLiteral(SimpleCodemod, NameResolutionMixin): references=[], ) change_description = "Replace sets from lists with set literals" - REFERENCES: list = [] def leave_Call(self, original_node: cst.Call, updated_node: cst.Call): if not self.filter_by_path_includes_or_excludes(