Skip to content

Commit

Permalink
refactor: improve type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh672003 committed Sep 1, 2024
1 parent a431dea commit 07bf70d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyfix_imports/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_file_text(filename: str) -> str:
return output


def write_to_file(filename: str, text: str):
def write_to_file(filename: str, text: str) -> None:
try:
with open(filename, "w") as file:
file.write(text)
Expand Down

0 comments on commit 07bf70d

Please sign in to comment.