@@ -84,7 +84,6 @@ def __init__(
8484 completions : Optional [List ["Completion" ]] = None ,
8585 complete_index : Optional [int ] = None ,
8686 ) -> None :
87-
8887 #: Document as it was when the completion started.
8988 self .original_document = original_document
9089
@@ -156,7 +155,6 @@ class YankNthArgState:
156155 def __init__ (
157156 self , history_position : int = 0 , n : int = - 1 , previous_inserted_word : str = ""
158157 ) -> None :
159-
160158 self .history_position = history_position
161159 self .previous_inserted_word = previous_inserted_word
162160 self .n = n
@@ -253,7 +251,6 @@ def __init__(
253251 on_completions_changed : Optional [BufferEventHandler ] = None ,
254252 on_suggestion_set : Optional [BufferEventHandler ] = None ,
255253 ):
256-
257254 # Accept both filters and booleans as input.
258255 enable_history_search = to_filter (enable_history_search )
259256 complete_while_typing = to_filter (complete_while_typing )
@@ -1720,7 +1717,6 @@ async def async_completer(
17201717 insert_common_part : bool = False ,
17211718 complete_event : Optional [CompleteEvent ] = None ,
17221719 ) -> None :
1723-
17241720 document = self .document
17251721 complete_event = complete_event or CompleteEvent (text_inserted = True )
17261722
0 commit comments