|
7 | 7 | InsertClause, ReplaceClause, EditingAction, BodyOrWhole, RegionClause, MarkerType |
8 | 8 | from cedarscript_ast_parser.cedarscript_ast_parser import MarkerCompatible, RelativeMarker, \ |
9 | 9 | RelativePositionType |
10 | | -from text_manipulation.indentation_kit import IndentationInfo |
11 | | -from text_manipulation.range_spec import IdentifierBoundaries, RangeSpec |
12 | | -from text_manipulation.text_editor_kit import read_file, write_file, bow_to_search_range |
| 10 | +from text_manipulation import IndentationInfo |
| 11 | +from text_manipulation import IdentifierBoundaries, RangeSpec |
| 12 | +from text_manipulation import read_file, write_file, bow_to_search_range |
13 | 13 |
|
14 | 14 | from .identifier_selector import select_finder |
15 | 15 |
|
@@ -58,7 +58,9 @@ def __init__(self, command_ordinal: int, description: str): |
58 | 58 | "the state at which the file was left (saying what needs to be done now), " |
59 | 59 | f"then write new commands that will fix the problem{previous_cmd_notes} " |
60 | 60 | "(you'll get a one-million dollar tip if you get it right!) " |
61 | | - "Use descriptive comment before each command; If showing CEDARScript commands to the user, *DON'T* enclose them in ```CEDARSCript and ``` otherwise they will be executed!</suggestion></error-details>" |
| 61 | + "Use descriptive comment before each command; If showing CEDARScript commands to the user, " |
| 62 | + "*DON'T* enclose them in ```CEDARSCript and ``` otherwise they will be executed!" |
| 63 | + "</suggestion></error-details>" |
62 | 64 | ) |
63 | 65 |
|
64 | 66 |
|
@@ -150,7 +152,7 @@ def _update_command(self, cmd: UpdateCommand): |
150 | 152 | src = read_file(file_path) |
151 | 153 | lines = src.splitlines() |
152 | 154 |
|
153 | | - source_info: tuple[LiteralString | str | bytes, str | Sequence[str]] = (file_path, src) |
| 155 | + source_info: tuple[str | bytes, str | Sequence[str]] = (file_path, src) |
154 | 156 |
|
155 | 157 | def identifier_resolver(m: Marker): |
156 | 158 | return self.find_identifier(source_info, m) |
|
0 commit comments