From 07ec478184753684a59020311c07fa00c206c704 Mon Sep 17 00:00:00 2001 From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Thu, 10 Sep 2026 00:24:27 -0700 Subject: [PATCH] fix: don't lint st_birthtime --- src/tagstudio/core/utils/stat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tagstudio/core/utils/stat.py b/src/tagstudio/core/utils/stat.py index cafd71d4..29620159 100644 --- a/src/tagstudio/core/utils/stat.py +++ b/src/tagstudio/core/utils/stat.py @@ -19,7 +19,8 @@ def get_date_modified(path_or_stat: Path | os.stat_result) -> float: def get_date_created(path_or_stat: Path | os.stat_result) -> float: stat = _resolve(path_or_stat) if platform.system() in {"Windows", "Darwin"}: - return stat.st_birthtime + # NOTE: Accessing stat().st_birthtime causes linter checks to fail on some systems. + return stat.st_birthtime # type: ignore[attr-defined, unused-ignore] else: return stat.st_ctime