Skip to content

Commit

Permalink
Fix mypy fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ways committed Nov 29, 2024
1 parent 2d26076 commit f66930b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sedr/edreq12.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def requrementA5_2(jsondata: dict) -> tuple[bool, str]:

extent = None
extent = util.parse_spatial_bbox(jsondata)
if extent is None or len(extent) > 1 or not isinstance(extent, list):
if extent == [] or len(extent) > 1 or not isinstance(extent, list):
return (
False,
f"Extent→spatial→bbox should be a list of bboxes with exactly "
Expand Down
2 changes: 1 addition & 1 deletion sedr/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ def parse_spatial_bbox(jsondata: dict) -> list:
try:
return jsondata["extent"]["spatial"]["bbox"]
except (AttributeError, KeyError) as err:
return None
return []

0 comments on commit f66930b

Please sign in to comment.