make mypy happy

This commit is contained in:
Jann Stute
2024-11-28 20:02:46 +01:00
parent cdf2f09d60
commit 1f5a4dcc7e
2 changed files with 2 additions and 2 deletions

View File

@@ -15,10 +15,10 @@ from sqlalchemy import (
and_,
create_engine,
delete,
distinct,
exists,
func,
or_,
distinct,
select,
update,
)

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) # type: ignore[attr-defined]
created = dt.fromtimestamp(filepath.stat().st_birthtime)
else:
created = dt.fromtimestamp(filepath.stat().st_ctime)
modified: dt = dt.fromtimestamp(filepath.stat().st_mtime)