Skip to content

Commit

Permalink
Enable reportOptionalIterable in pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanjmcdougall committed Aug 21, 2024
1 parent f974481 commit 8188895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pins/rsconnect/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ def _raw_query(self, url, method="GET", return_request=False, **kwargs):
data = r.json()
self._validate_json_response(data)
return data
except requests.JSONDecodeError:
except requests.JSONDecodeError as err:
r.raise_for_status()
raise err # Fallback if somehow there was no HTTPError

def walk_paginated_offsets(self, f_query, endpoint, method, params=None, **kwargs):
if params is None:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ reportIncompatibleMethodOverride = false
reportIndexIssue = false
reportMissingImports = false
reportMissingTypeStubs = false
reportOptionalIterable = false
reportOptionalMemberAccess = false
reportOptionalSubscript = false
reportPossiblyUnboundVariable = false
Expand Down

0 comments on commit 8188895

Please sign in to comment.