fix: make mypy happy

This commit is contained in:
Jann Stute
2024-11-28 23:56:53 +01:00
parent a784fe68e6
commit 6fb1d4bff7

View File

@@ -478,7 +478,7 @@ class PreviewPanel(QWidget):
if filepath and filepath.is_file():
created: dt = None
if platform.system() == "Windows" or platform.system() == "Darwin":
created = dt.fromtimestamp(filepath.stat().st_birthtime)
created = dt.fromtimestamp(filepath.stat().st_birthtime) # type: ignore[attr-defined]
else:
created = dt.fromtimestamp(filepath.stat().st_ctime)
modified: dt = dt.fromtimestamp(filepath.stat().st_mtime)