From efa76a99990abb448effff5cdf9b38d2586f8058 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 10:29:52 +0000 Subject: [PATCH 1/2] build(deps-dev): bump ruff from 0.1.1 to 0.1.4 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.1 to 0.1.4. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.1...v0.1.4) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 8c05a98b71d3dd766c940d200ba5dbb9b4a33694 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Tue, 7 Nov 2023 06:12:45 -0700 Subject: [PATCH 2/2] 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