Fixed typo in `parse_code_blobs` docstring (#155)
Fixed typo in `parse_code_blobs` docstring
This commit is contained in:
		
							parent
							
								
									320dd77f37
								
							
						
					
					
						commit
						5a62304c91
					
				|  | @ -106,7 +106,7 @@ def parse_json_blob(json_blob: str) -> Dict[str, str]: | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def parse_code_blobs(code_blob: str) -> str: | def parse_code_blobs(code_blob: str) -> str: | ||||||
|     """Parses the LLM's output to get any code blob inside. Will retrun the code directly if it's code.""" |     """Parses the LLM's output to get any code blob inside. Will return the code directly if it's code.""" | ||||||
|     pattern = r"```(?:py|python)?\n(.*?)\n```" |     pattern = r"```(?:py|python)?\n(.*?)\n```" | ||||||
|     matches = re.findall(pattern, code_blob, re.DOTALL) |     matches = re.findall(pattern, code_blob, re.DOTALL) | ||||||
|     if len(matches) == 0: |     if len(matches) == 0: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue