Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable reportOptionalIterable in pyright #307

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading