Skip to content

Commit

Permalink
refactor: use Path stat instead of os stat
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Dec 31, 2023
1 parent 960f32e commit 18bf4e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# pyright: reportMissingModuleSource=false
# pylint: disable=missing-docstring

from os import stat
from pathlib import Path
from sys import exit as sys_exit
from typing import Any, Callable
Expand Down Expand Up @@ -42,7 +41,7 @@


def get_file_modified_time(filename: Path) -> float:
return stat(filename).st_ctime
return filename.stat().st_ctime


def insert_todo(
Expand Down

0 comments on commit 18bf4e7

Please sign in to comment.