Skip to content

Create Lockable mixin #213

@psomhorst

Description

@psomhorst

It is useful if objects can be locked and considered immutable. Numpy arrays can be flagged as locked, which makes them immutable. This mixin should offer easy access to those flags. Non-arrays may be prevented from being overwritten using a custom __setattr__ method. Lists may be converted to tuples. Dicts may be converted to typing.MappingProxyType. However, locking of nested objects is not trivial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions