Skip to content

Commit 4c06798

Browse files
committed
fix class method overwritten
1 parent bdacdc4 commit 4c06798

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codetext/codetext_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def parse_file(file_path: str, language: str = None, verbose: bool = False) -> L
5353
cls_info["code"] = get_node_text(_cls)
5454

5555
cls_method = []
56-
method_list = parser.get_function_list(_cls)
57-
for method in method_list:
56+
current_class_methods = parser.get_function_list(_cls)
57+
for method in current_class_methods:
5858
method_info = parser.get_function_metadata(method)
5959
method_info['code'] = get_node_text(method)
6060
cls_method.append(method_info)

0 commit comments

Comments
 (0)