Skip to content

PyoKeysView

Bases: KeysView[K], PyoMappingView[K], PyoSet[K]

A view of the keys in a pyochain mapping.

This class provides a view over the keys contained in a pyochain mapping, with additional methods from the PyoMappingView, PyoSet, and PyoCollection traits.

Keys views support set-like operations since dictionary keys are unique.

See Also

PyoMapping.keys(): Method that returns this view.

Source code in src/pyochain/traits/_iterable.py
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
class PyoKeysView[K](KeysView[K], PyoMappingView[K], PyoSet[K]):
    """A view of the keys in a pyochain mapping.

    This class provides a view over the keys contained in a pyochain mapping, with
    additional methods from the `PyoMappingView`, `PyoSet`, and `PyoCollection` traits.

    Keys views support set-like operations since dictionary keys are unique.

    See Also:
        `PyoMapping.keys()`: Method that returns this view.
    """

    __slots__ = ()