fix(ci): restore 'type: ignore' comment for st_birthtime property

This commit is contained in:
Travis Abendshien
2026-05-14 02:56:40 -07:00
parent 67cc99d884
commit 92f5e0eda5

View File

@@ -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)