(file_path: str)
| 23 | |
| 24 | @staticmethod |
| 25 | def extract_classes(file_path: str): |
| 26 | with open(file_path, 'r') as f: |
| 27 | file_ast = ast.parse(f.read()) |
| 28 | classes = {} |
| 29 | for node in file_ast.body: |
| 30 | if isinstance(node, ast.ClassDef): |
| 31 | classes[node.name] = {'node': node, 'file': file_path} |
| 32 | return classes |
| 33 | |
| 34 | @staticmethod |
| 35 | def get_data_source_class(data_source_name: str): |
no outgoing calls
no test coverage detected