From a11b4d217fc6c6479b3b9d9282f668ac9ded432c Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Tue, 7 Nov 2023 06:12:45 -0700 Subject: [PATCH] feat: add assert for mypy --- src/stac_asset/_functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stac_asset/_functions.py b/src/stac_asset/_functions.py index 314fb27..487acae 100644 --- a/src/stac_asset/_functions.py +++ b/src/stac_asset/_functions.py @@ -377,6 +377,7 @@ async def download_asset( if messages: if asset.owner: + assert isinstance(asset.owner, (Item, Collection)) owner_id = asset.owner.id else: owner_id = None