From bd3eddccc6312e453adfa0d263416aad6d2ca7e2 Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Sat, 16 Mar 2024 12:24:48 -0500 Subject: [PATCH] fix: address deprecation warning in get_file_modified_time() --- todo.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/todo.py b/todo.py index 8962fdf..0b64f7c 100755 --- a/todo.py +++ b/todo.py @@ -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(