@@ -1114,11 +1114,9 @@ def __repr__(self) -> str:
11141114class DataProcessor:
11151115
11161116 def process_data(self, raw_data: str) -> str:
1117- \" \" \" Process raw data by converting it to uppercase.\" \" \"
11181117 return raw_data.upper()
11191118
11201119 def add_prefix(self, data: str, prefix: str = "PREFIX_") -> str:
1121- \" \" \" Add a prefix to the processed data.\" \" \"
11221120 return prefix + data
11231121```
11241122```python:{ path_to_file .relative_to (project_root )}
@@ -1220,11 +1218,9 @@ def transform(self, data):
12201218class DataProcessor:
12211219
12221220 def process_data(self, raw_data: str) -> str:
1223- \" \" \" Process raw data by converting it to uppercase.\" \" \"
12241221 return raw_data.upper()
12251222
12261223 def transform_data(self, data: str) -> str:
1227- \" \" \" Transform the processed data\" \" \"
12281224 return DataTransformer().transform(data)
12291225```
12301226```python:{ path_to_file .relative_to (project_root )}
@@ -1309,11 +1305,16 @@ def __repr__(self) -> str:
13091305
13101306"""
13111307 expected_hashing_context = f"""
1308+ ```python:transform_utils.py
1309+ class DataTransformer:
1310+
1311+ def transform_using_own_method(self, data):
1312+ return self.transform(data)
1313+ ```
13121314```python:{ path_to_utils .relative_to (project_root )}
13131315class DataProcessor:
13141316
13151317 def transform_data_own_method(self, data: str) -> str:
1316- \" \" \" Transform the processed data using own method\" \" \"
13171318 return DataTransformer().transform_using_own_method(data)
13181319```
13191320"""
@@ -1379,11 +1380,16 @@ def __repr__(self) -> str:
13791380```
13801381"""
13811382 expected_hashing_context = f"""
1383+ ```python:transform_utils.py
1384+ class DataTransformer:
1385+
1386+ def transform_using_same_file_function(self, data):
1387+ return update_data(data)
1388+ ```
13821389```python:{ path_to_utils .relative_to (project_root )}
13831390class DataProcessor:
13841391
13851392 def transform_data_same_file_function(self, data: str) -> str:
1386- \" \" \" Transform the processed data using a function from the same file\" \" \"
13871393 return DataTransformer().transform_using_same_file_function(data)
13881394```
13891395"""
0 commit comments