Skip to content

Commit

Permalink
Fix type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
norhh committed Mar 11, 2024
1 parent abaa9ae commit df6b05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BugsInPy/run_custom_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_function_def_range(source_code: str, start_lineno: int) -> Tuple[int, in
return start_lineno, None # Fallback in case no matching function is found


def get_diff(lineno: int, replacement_code: str, source_code: str) -> None:
def get_diff(lineno: int, replacement_code: str, source_code: str) -> str:
"""
This function returns the diff of the replacement code with the current code
"""
Expand Down

0 comments on commit df6b05f

Please sign in to comment.