@@ -118,9 +118,7 @@ def open(self, filepath: Path, version: int = 0) -> tuple[str, str]:
118118 def close (self , uri : str ) -> None :
119119 """Close a text document."""
120120 self .text_document_did_close (
121- DidCloseTextDocumentParams (
122- text_document = TextDocumentIdentifier (uri = uri )
123- )
121+ DidCloseTextDocumentParams (text_document = TextDocumentIdentifier (uri = uri ))
124122 )
125123
126124 # ── Diagnostics ──────────────────────────────────────────────────
@@ -161,7 +159,9 @@ async def open_and_wait(
161159
162160 # ── Feature request shortcuts ────────────────────────────────────
163161
164- async def hover_at (self , uri : str , line : int , character : int , * , timeout : float = 30.0 ):
162+ async def hover_at (
163+ self , uri : str , line : int , character : int , * , timeout : float = 30.0
164+ ):
165165 """Send hover request at given position."""
166166 return await asyncio .wait_for (
167167 self .text_document_hover_async (
@@ -173,7 +173,9 @@ async def hover_at(self, uri: str, line: int, character: int, *, timeout: float
173173 timeout = timeout ,
174174 )
175175
176- async def definition_at (self , uri : str , line : int , character : int , * , timeout : float = 30.0 ):
176+ async def definition_at (
177+ self , uri : str , line : int , character : int , * , timeout : float = 30.0
178+ ):
177179 """Send go-to-definition request at given position."""
178180 return await asyncio .wait_for (
179181 self .text_document_definition_async (
@@ -186,8 +188,13 @@ async def definition_at(self, uri: str, line: int, character: int, *, timeout: f
186188 )
187189
188190 async def references_at (
189- self , uri : str , line : int , character : int ,
190- * , include_declaration : bool = True , timeout : float = 30.0 ,
191+ self ,
192+ uri : str ,
193+ line : int ,
194+ character : int ,
195+ * ,
196+ include_declaration : bool = True ,
197+ timeout : float = 30.0 ,
191198 ):
192199 """Send find-references request at given position."""
193200 return await asyncio .wait_for (
@@ -201,7 +208,9 @@ async def references_at(
201208 timeout = timeout ,
202209 )
203210
204- async def completion_at (self , uri : str , line : int , character : int , * , timeout : float = 30.0 ):
211+ async def completion_at (
212+ self , uri : str , line : int , character : int , * , timeout : float = 30.0
213+ ):
205214 """Send completion request at given position."""
206215 return await asyncio .wait_for (
207216 self .text_document_completion_async (
@@ -213,7 +222,9 @@ async def completion_at(self, uri: str, line: int, character: int, *, timeout: f
213222 timeout = timeout ,
214223 )
215224
216- async def signature_help_at (self , uri : str , line : int , character : int , * , timeout : float = 30.0 ):
225+ async def signature_help_at (
226+ self , uri : str , line : int , character : int , * , timeout : float = 30.0
227+ ):
217228 """Send signature help request at given position."""
218229 return await asyncio .wait_for (
219230 self .text_document_signature_help_async (
@@ -256,13 +267,20 @@ async def inlay_hints(self, uri: str, range_: Range, *, timeout: float = 30.0):
256267 """Send inlay hint request for given range."""
257268 return await asyncio .wait_for (
258269 self .text_document_inlay_hint_async (
259- InlayHintParams (text_document = TextDocumentIdentifier (uri = uri ), range = range_ )
270+ InlayHintParams (
271+ text_document = TextDocumentIdentifier (uri = uri ), range = range_
272+ )
260273 ),
261274 timeout = timeout ,
262275 )
263276
264277 async def code_actions (
265- self , uri : str , range_ : Range , diagnostics = None , * , timeout : float = 30.0 ,
278+ self ,
279+ uri : str ,
280+ range_ : Range ,
281+ diagnostics = None ,
282+ * ,
283+ timeout : float = 30.0 ,
266284 ):
267285 """Send code action request."""
268286 return await asyncio .wait_for (
@@ -301,7 +319,9 @@ async def current_context(self, uri: str, *, timeout: float = 30.0):
301319 timeout = timeout ,
302320 )
303321
304- async def switch_context (self , uri : str , context_uri : str , * , timeout : float = 30.0 ):
322+ async def switch_context (
323+ self , uri : str , context_uri : str , * , timeout : float = 30.0
324+ ):
305325 """Send clice/switchContext extension request."""
306326 return await asyncio .wait_for (
307327 self .protocol .send_request_async (
0 commit comments