Skip to content

Commit

Permalink
feat: add assert for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Nov 7, 2023
1 parent 6f73153 commit a11b4d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stac_asset/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a11b4d2

Please sign in to comment.