@@ -179,7 +179,7 @@ def _collect_and_store_tree_sitter_symbols_and_strings(resource):
179179
180180
181181@cache
182- def load_language (language : str ):
182+ def load_language (language ):
183183 from source_inspector import symbols_tree_sitter
184184
185185 if language not in symbols_tree_sitter .TS_LANGUAGE_WHEELS :
@@ -392,7 +392,7 @@ def __init__(self, lang_query: LanguageQuery, root_node):
392392 self .root_node = root_node
393393 self .syntax_config = lang_query .syntax_config
394394
395- def _build_qualified_name (self , node , index : dict ) -> str :
395+ def _build_qualified_name (self , node , index ) :
396396 """
397397 Build fully qualified names internally
398398 (e.g., ClassName.function_name or ClassName::function_name).
@@ -410,7 +410,7 @@ def _build_qualified_name(self, node, index: dict) -> str:
410410
411411 def extract_definitions_index (self ):
412412 """Build the index of definitions with fully qualified names."""
413- index : dict [ int , dict ] = {}
413+ index = {}
414414
415415 for node , name in self .lang_query .get_functions (self .root_node ):
416416 index [node .id ] = {"node" : node , "name" : name , "kind" : "functions" }
@@ -428,7 +428,7 @@ def extract_definitions_index(self):
428428
429429 return index
430430
431- def extract_changed_symbols (self , changed_lines : list [ int ] ):
431+ def extract_changed_symbols (self , changed_lines ):
432432 """Map changed line numbers to their enclosing symbol nodes."""
433433 if self .root_node is None or not changed_lines :
434434 return []
@@ -474,8 +474,8 @@ def extract_imports(self):
474474 separator = self .syntax_config .get ("separator" , "." )
475475 wildcard_sym = self .syntax_config .get ("wildcard_symbol" )
476476
477- import_map : dict [ str , str | list [ str ]] = {}
478- wildcard_modules : list [ str ] = []
477+ import_map = {}
478+ wildcard_modules = []
479479
480480 for module_name , pairs in self .lang_query .get_imports (self .root_node ):
481481 for imp_name , alias in pairs :
0 commit comments