File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
22from functools import wraps
3- from typing import Dict
3+ from typing import Dict , List
44
55import requests
66
@@ -198,7 +198,7 @@ def selected_lines() -> Dict:
198198
199199
200200@rpc_call
201- def document_symbols (abspath : str ) -> list :
201+ def document_symbols (abspath : str ) -> List :
202202 """
203203 Retrieves a list of symbols defined in a document at the given absolute path.
204204
@@ -263,7 +263,7 @@ def document_symbols(abspath: str) -> list:
263263
264264
265265@rpc_call
266- def workspace_symbols (query : str ) -> list :
266+ def workspace_symbols (query : str ) -> List :
267267 """
268268 This function is a Python interface for the workspace_symbols RPC endpoint.
269269 It retrieves symbols from a workspace based on a given query string.
@@ -281,7 +281,7 @@ def workspace_symbols(query: str) -> list:
281281
282282
283283@rpc_call
284- def find_definition (abspath : str , line : int , col : int ) -> list :
284+ def find_definition (abspath : str , line : int , col : int ) -> List :
285285 """
286286 This function is a Python interface for the RPC 'find_definition' method. It returns
287287 a list of locations or location links where the definition of a symbol is found in the code.
You can’t perform that action at this time.
0 commit comments