Skip to content

Observing core types #2

@jayvdb

Description

@jayvdb

I would like to have observable dicts. This seems like a pattern that notifyr
might want to provide an implementation for, and docs with a recipe for observing other core types.

I noticed that observable(dict) fails because it adds update and collections use update. It would be useful to allow the method names to be configurable, or use semi-private names / dunder names, to avoid clashes with the wrapped classes API.

If the core type needs to be subclassed in order to be observed, a mixin would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions