CallbackDict

CallbackDict#

class CallbackDict#

Bases: dict, Generic[_K, _V]

Dictionary that sends a callback on change.

Dictionary is considered flat (setting a nested key will not trigger a callback).

__setitem__(k, v)#

Set self[key] to value.

Parameters:
  • k (_K)

  • v (_V)

__weakref__#

list of weak references to the object