Skip to content

Commit ca8af1d

Browse files
committed
Update type hints in services.py
1 parent 5e1c1da commit ca8af1d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libs/ide_services/services.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from functools import wraps
3-
from typing import Dict
3+
from typing import Dict, List
44

55
import 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.

0 commit comments

Comments
 (0)