diff --git a/pyproject.toml b/pyproject.toml index 13a6705..62f2041 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ dev = [ "pytest~=7.3", "pytest-asyncio~=0.21", "pytest-cov~=4.1", - "ruff==0.1.1", + "ruff==0.1.4", "types-aiofiles~=23.1", "types-python-dateutil~=2.8.19", "types-tqdm~=4.66.0", 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