I'm pretty sure this is a typo - the text immediately after this example talks about the container.pebble_ready_event() being sugar, but the code isn't using it (and also the test doesn't pass as-is, but does with this change).
Also a minor wrapping change, which I think makes it clearer what's happening (that the event is not an argument to Context).
I'm pretty sure this is a typo - the text immediately after this example talks about the
container.pebble_ready_event()
being sugar, but the code isn't using it (and also the test doesn't pass as-is, but does with this change).Also a minor wrapping change, which I think makes it clearer what's happening (that the event is not an argument to
Context
).