Source code for spacecore.space.base._star
from __future__ import annotations
from abc import abstractmethod
from typing import Any
from ._space import Space
[docs]
class StarSpace(Space):
"""
Space capability with a canonical involution/star operation.
Parameters
----------
ctx : Context, str, or None, optional
Context specification used for elements and validation checks.
"""
[docs]
@abstractmethod
def star(self, x: Any) -> Any:
"""Return the canonical star/involution of ``x``."""