requires_ownership¶
- zixy.container.base.requires_ownership(method: Callable[[Concatenate[OwnT, P]], R]) Callable[[Concatenate[OwnT, P]], R][source]¶
Decorator for methods that can only be called on owning views.
- Parameters:
method – Method to decorate.
- Returns:
Decorated method that raises a
ValueErrorif called on a non-owning view.