Chore: typing fixes

This commit is contained in:
shamoon
2026-02-16 09:54:06 -08:00
parent e54b69f7c4
commit 426c0a8974
2 changed files with 2 additions and 2 deletions

View File

@@ -2927,7 +2927,7 @@ class WorkflowSerializer(serializers.ModelSerializer):
return instance return instance
def to_representation(self, instance): def to_representation(self, instance: Workflow) -> dict[str, Any]:
data = super().to_representation(instance) data = super().to_representation(instance)
actions = instance.actions.order_by("order", "pk") actions = instance.actions.order_by("order", "pk")
data["actions"] = WorkflowActionSerializer( data["actions"] = WorkflowActionSerializer(

View File

@@ -3022,7 +3022,7 @@ class SharedLinkView(View):
return response return response
def serve_file(*, doc: Document, use_archive: bool, disposition: str): def serve_file(*, doc: Document, use_archive: bool, disposition: str) -> HttpResponse:
if use_archive: if use_archive:
file_handle = doc.archive_file file_handle = doc.archive_file
filename = doc.get_public_filename(archive=True) filename = doc.get_public_filename(archive=True)