mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-21 23:38:13 +00:00
Chore: Drop Python 3.9 support (#7774)
This commit is contained in:
1 parent
5e687d9a93
commit
e6f59472e4
44 files changed
+970
-1066
No files matched your search
@@ -5,7 +5,6 @@ import re
|
||||
from collections import OrderedDict
|
||||
from pathlib import Path
|
||||
from typing import Final
|
||||
from typing import Optional
|
||||
|
||||
import dateutil.parser
|
||||
import pathvalidate
|
||||
@@ -326,7 +325,7 @@ class Document(SoftDeleteModel, ModelWithOwner):
|
||||
return self.archive_filename is not None
|
||||
|
||||
@property
|
||||
def archive_path(self) -> Optional[Path]:
|
||||
def archive_path(self) -> Path | None:
|
||||
if self.has_archive_version:
|
||||
return (settings.ARCHIVE_DIR / Path(str(self.archive_filename))).resolve()
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user