Skip to content

Commit

Permalink
Merge branch 'develop' into prepare-for-release
Browse files Browse the repository at this point in the history
  • Loading branch information
zigaLuksic committed Oct 24, 2023
2 parents 8aba35a + e4f9a31 commit 4cca6be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sentinelhub/areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def _parse_to_pair(parameter: T | tuple[T, T], allowed_types: tuple[type, ...],

parameter = cast(T, parameter)
if isinstance(parameter, allowed_types):
return parameter, parameter
return parameter, parameter # type: ignore[return-value] # mypy 1.6 fails to do type narrowing here

raise ValueError(
f"Parameter {param_name} must be a single instance or a pair, with allowed types {allowed_types}, but"
Expand Down
1 change: 1 addition & 0 deletions sentinelhub/download/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def _fetch_token(self, request: DownloadRequest) -> JsonDict:
client_id=self.config.sh_client_id,
client_secret=self.config.sh_client_secret,
headers={**self.DEFAULT_HEADERS, **SHConstants.HEADERS},
include_client_id=True,
)

@staticmethod
Expand Down

0 comments on commit 4cca6be

Please sign in to comment.