Skip to content

Commit

Permalink
fix: address deprecation warning in get_file_modified_time()
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Mar 16, 2024
1 parent d35d820 commit bd3eddc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@


def get_file_modified_time(filename: Path) -> float:
"""Return the most recent modification time for a given file"""
return filename.stat().st_ctime
"""
Return the most recent modification time for a given file
st_ctime should return the most recent modification time cross platform
"""
return filename.stat().st_ctime # pyright: ignore


def insert_todo(
Expand Down

0 comments on commit bd3eddc

Please sign in to comment.