Skip to content

Commit c89c64e

Browse files
committed
Remove type hints for symbols.py
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
1 parent 9ce4cb4 commit c89c64e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scanpipe/pipes/symbols.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def __init__(self):
228228
Query(self.ts_language, source) if source else None
229229
)
230230

231-
def parse_code_to_ast(self, code_text: str):
231+
def parse_code_to_ast(self, code_text):
232232
from source_inspector import symbols_tree_sitter
233233
from tree_sitter import Parser
234234

@@ -239,7 +239,7 @@ def parse_code_to_ast(self, code_text: str):
239239
code_text.encode("utf-8")
240240
), symbols_tree_sitter.TS_LANGUAGE_WHEELS[self.language_name]
241241

242-
def run_query(self, kind: str, root_node):
242+
def run_query(self, kind, root_node):
243243
query = self._compiled_queries.get(kind)
244244
return query.matches(root_node) if query else []
245245

0 commit comments

Comments
 (0)