Skip to content

Commit

Permalink
style(pano_check.py): Added some type ignores for mypy checking, and …
Browse files Browse the repository at this point in the history
…added types-requests.
  • Loading branch information
rbeyer committed Sep 12, 2023
1 parent 2f32eb2 commit e5ec3a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions environment_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ dependencies:
- sphinxcontrib-autoprogram
- tox
- types-pillow
- types-requests
- twine
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ Sphinx
tox
twine
types-pillow
types-requests
wheel
watchdog
4 changes: 2 additions & 2 deletions src/vipersci/vis/pano_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ def check(
if all(map(isinstance, images, itertools.repeat(ImageRecord))):
image_records = {}
for im in images:
vid = pds.VISID(im.product_id)
vid = pds.VISID(im.product_id) # type: ignore # noqa
image_records[vid] = im
raw_vids.append(vid)
elif all(map(isinstance, images, itertools.repeat(pds.VISID))):
raw_vids = images
raw_vids = list(images) # type: ignore # noqa
else:
raise TypeError(
"The provided iterable does not contain all ImageRecords or "
Expand Down

0 comments on commit e5ec3a2

Please sign in to comment.