You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
We use __getattr__ to make accessing the response data nicer, so __getattr__(self, name) returns self._raw_data[name]. However, if name isn’t in _raw_data, a KeyError will be raised. I think most Python programmers would expect an AttributeError. We should probably also support nested attributes, because auth_request.requester.id is way less pretty than auth_request.requester['id'].
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We use
__getattr__
to make accessing the response data nicer, so__getattr__(self, name)
returnsself._raw_data[name]
. However, ifname
isn’t in_raw_data
, a KeyError will be raised. I think most Python programmers would expect an AttributeError. We should probably also support nested attributes, becauseauth_request.requester.id
is way less pretty thanauth_request.requester['id']
.The text was updated successfully, but these errors were encountered: