@@ -37,7 +37,7 @@ def replace(self, initial: str, end: str, keep_block: bool) -> None:
3737 if not runs_to_change .get (run_index ):
3838 runs_to_change [run_index ] = [char for char_index , char in enumerate (run .text )]
3939
40- run_to_change : Dict = runs_to_change .get (run_index )
40+ run_to_change : Dict = runs_to_change .get (run_index ) # type: ignore[assignment]
4141 if (
4242 (not keep_block )
4343 or (index in range (initial_index , initial_index_plus_key_length ))
@@ -61,7 +61,7 @@ def clear_key_and_after(self, key: str, keep_block: bool) -> None:
6161 if not runs_to_change .get (run_index ):
6262 runs_to_change [run_index ] = [char for char_index , char in enumerate (run .text )]
6363
64- run_to_change : Dict = runs_to_change .get (run_index )
64+ run_to_change : Dict = runs_to_change .get (run_index ) # type: ignore[assignment]
6565 if (not keep_block ) or (index in range (key_index , key_index_plus_key_length )):
6666 run_to_change [run_char_index ] = ""
6767
@@ -81,7 +81,7 @@ def clear_key_and_before(self, key: str, keep_block: bool) -> None:
8181 if not runs_to_change .get (run_index ):
8282 runs_to_change [run_index ] = [char for char_index , char in enumerate (run .text )]
8383
84- run_to_change : Dict = runs_to_change .get (run_index )
84+ run_to_change : Dict = runs_to_change .get (run_index ) # type: ignore[assignment]
8585 if (not keep_block ) or (index in range (key_index , key_index_plus_key_length )):
8686 run_to_change [run_char_index ] = ""
8787
0 commit comments