Skip to content
Open
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: 3 additions & 0 deletions traitlets/traitlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,9 @@ def compress(past_changes, change):
return past_changes

def hold(change):
if not isinstance(change, Bunch):
# cast to bunch if given a dict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to nitpick. Can you just tab in this comment?

change = Bunch(change)
name = change.name
cache[name] = compress(cache.get(name), change)

Expand Down