Skip to content

Commit 99ffe7d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codetext/codetext_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def parse_file(file_path: str, language: str = None, verbose: bool = False) -> L
6161

6262
cls_info["method"] = cls_method
6363
cls_metadata.append(cls_info)
64-
method_list.extend(method_list)
64+
method_list.extend(current_class_methods)
6565

6666
fn_list: List = parser.get_function_list(root_node)
6767
for node in fn_list[:]:

0 commit comments

Comments
 (0)