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
Add a get_session() utility function and replace all current occurences of
AttrDict(**json.loads(raw_session))
with get_session(raw_session), where raw_session is what is returned by the fetch(), get() and initialize() methods.
This makes the code easier to read and makes it much easier to change the return value of the fetch(), get() and initialize() methods as suggested in issue #86.
If issue #86 is rejected, this utility function would still be improve the user-friendliness (although not as much as issue #86).
The text was updated successfully, but these errors were encountered:
Add a
get_session()
utility function and replace all current occurences ofwith
get_session(raw_session)
, whereraw_session
is what is returned by thefetch()
,get()
andinitialize()
methods.This makes the code easier to read and makes it much easier to change the return value of the
fetch()
,get()
andinitialize()
methods as suggested in issue #86.If issue #86 is rejected, this utility function would still be improve the user-friendliness (although not as much as issue #86).
The text was updated successfully, but these errors were encountered: