-
Notifications
You must be signed in to change notification settings - Fork 219
Docs update #159
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
Docs update #159
Conversation
|
Verified that @kelseymorris95 has signed the CLA. Thanks for the pull request! |
HISTORY.rst
Outdated
|
|
||
| **Breaking Changes** | ||
|
|
||
| - ``Events.get_events(...)`` now returns a list of ``Event`` instances rather than a list of ``dicts`` s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just dict, not dicts.
HISTORY.rst
Outdated
|
|
||
| - ``Events.get_events(...)`` now returns a list of ``Event`` instances rather than a list of ``dicts`` s | ||
| representing ``Event`` s. ``Event`` inherits from ``Mapping`` but will not have all the same capabilities as | ||
| ``dict`` . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a sub-bullet about how to migrate. Something like:
- .
- Your code is affected if you use
Events.get_events(...)and expect a list ofdictinstead of a list ofMapping. For example, if you use__setitem__(event['key'] = value),update(), orcopy(), or if your code depends on thestrorreprof the event. Use of__getitem__(event['key']),get, and otherMappingmethods is unaffected. See https://docs.python.org/2.7/library/collections.html#collections-abstract-base-classes for methods supported onMappinginstances. - How to migrate: if you still have the need to treat the events like a
dict, then you can get a deepcopy of the originaldictwith the new attributeresponse_object.
- Your code is affected if you use
|
👍 |
No description provided.