mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-01 23:59:10 +00:00
make mypy happy
This commit is contained in:
@@ -15,10 +15,10 @@ from sqlalchemy import (
|
||||
and_,
|
||||
create_engine,
|
||||
delete,
|
||||
distinct,
|
||||
exists,
|
||||
func,
|
||||
or_,
|
||||
distinct,
|
||||
select,
|
||||
update,
|
||||
)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user