Skip to content

Commit

Permalink
refactor: add docstring to _print_history
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Mar 23, 2024
1 parent b825655 commit be29ee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ def _handle_enter(


def _print_history(history: UndoRedo) -> None:
"""Print passed in `history` to `HISTORY_FILE` if `PRINT_HISTORY` is enabled"""
if PRINT_HISTORY:
with open(HISTORY_FILE, "w", encoding="utf-8") as log_file:
print(history, file=log_file)
Expand Down

0 comments on commit be29ee5

Please sign in to comment.