From 92f5e0eda5a5bb56a03247186a89b346b063c670 Mon Sep 17 00:00:00 2001 From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Thu, 14 May 2026 02:56:40 -0700 Subject: [PATCH] fix(ci): restore 'type: ignore' comment for st_birthtime property --- src/tagstudio/qt/mixed/file_attributes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tagstudio/qt/mixed/file_attributes.py b/src/tagstudio/qt/mixed/file_attributes.py index 5445788a..38dfd3f0 100644 --- a/src/tagstudio/qt/mixed/file_attributes.py +++ b/src/tagstudio/qt/mixed/file_attributes.py @@ -114,7 +114,8 @@ class FileAttributes(QWidget): if filepath and filepath.is_file(): created: dt if platform.system() == "Windows" or platform.system() == "Darwin": - created = dt.fromtimestamp(filepath.stat().st_birthtime) + # NOTE: Accessing stat().st_birthtime causes linter checks to fail on some systems. + created = dt.fromtimestamp(filepath.stat().st_birthtime) # type: ignore[attr-defined, unused-ignore] else: created = dt.fromtimestamp(filepath.stat().st_ctime) modified: dt = dt.fromtimestamp(filepath.stat().st_mtime)