Chore: Enable ruff FBT (#8645)

This commit is contained in:
Sebastian Steinbeißer authored and GitHub committed 2025-02-07 09:12:03 -08:00
1 parent b274665e21
commit e560fa3be0
27 files changed
+133 -65

No files matched your search

+1 -1
View File
@@ -337,7 +337,7 @@ class Document(SoftDeleteModel, ModelWithOwner):
def archive_file(self):
return open(self.archive_path, "rb")
def get_public_filename(self, archive=False, counter=0, suffix=None) -> str:
def get_public_filename(self, *, archive=False, counter=0, suffix=None) -> str:
"""
Returns a sanitized filename for the document, not including any paths.
"""