From 971896473f8959bbe2e43361d5e99dada3496362 Mon Sep 17 00:00:00 2001 From: Mike VanDenburgh Date: Mon, 15 Aug 2022 14:00:45 -0400 Subject: [PATCH 1/2] Fix type errors in tasks --- dandiapi/api/tasks/zarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandiapi/api/tasks/zarr.py b/dandiapi/api/tasks/zarr.py index bc838f685..4cac6cf35 100644 --- a/dandiapi/api/tasks/zarr.py +++ b/dandiapi/api/tasks/zarr.py @@ -116,7 +116,7 @@ def ingest_zarr_archive( # Zarr is in correct state, lock until ingestion finishes with transaction.atomic(): - zarr: ZarrArchive = ZarrArchive.objects.select_for_update().get(zarr_id=zarr_id) + zarr = ZarrArchive.objects.select_for_update().get(zarr_id=zarr_id) # Reset before compute if not no_size: From 449ea82b016976e1e6bf3940c08fb2482407feb1 Mon Sep 17 00:00:00 2001 From: Mike VanDenburgh Date: Mon, 15 Aug 2022 14:01:11 -0400 Subject: [PATCH 2/2] Remove tasks from excluded mypy files --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c4fe44a5b..551967b51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,6 @@ exclude = [ "^dandiapi/api/management/", "^dandiapi/api/migrations/", "^dandiapi/api/models/", - "^dandiapi/api/tasks/", "^dandiapi/api/views/", ]