diff --git a/src/codemodder/codemods/libcst_transformer.py b/src/codemodder/codemods/libcst_transformer.py index bc53c675..1171b40d 100644 --- a/src/codemodder/codemods/libcst_transformer.py +++ b/src/codemodder/codemods/libcst_transformer.py @@ -4,8 +4,8 @@ from libcst import matchers from libcst._position import CodeRange from libcst.codemod import CodemodContext -from libcst.metadata import PositionProvider from libcst.codemod.visitors import AddImportsVisitor, RemoveImportsVisitor +from libcst.metadata import PositionProvider from codemodder.change import Change, ChangeSet from codemodder.codemods.base_transformer import BaseTransformerPipeline diff --git a/tests/test_format_string_parser.py b/tests/test_format_string_parser.py index 20089c98..b45c35fe 100644 --- a/tests/test_format_string_parser.py +++ b/tests/test_format_string_parser.py @@ -1,4 +1,5 @@ from typing import cast + import libcst as cst from codemodder.utils.format_string_parser import ( diff --git a/tests/test_linearize_string_expression.py b/tests/test_linearize_string_expression.py index e420637f..e5005138 100644 --- a/tests/test_linearize_string_expression.py +++ b/tests/test_linearize_string_expression.py @@ -1,10 +1,10 @@ +from textwrap import dedent + import libcst as cst from libcst.codemod import Codemod, CodemodContext + from codemodder.utils.format_string_parser import extract_raw_value -from codemodder.utils.linearize_string_expression import ( - LinearizeStringMixin, -) -from textwrap import dedent +from codemodder.utils.linearize_string_expression import LinearizeStringMixin class TestLinearizeStringExpression: