Skip to content

PyoItemsView

Bases: ItemsView[K, V], PyoMappingView[tuple[K, V]], PyoSet[tuple[K, V]]

A view of the items (key-value pairs) in a pyochain mapping.

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

Items are represented as tuples of (key, value) pairs, and the view supports set-like operations.

See Also

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

Source code in src/pyochain/traits/_iterable.py
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
class PyoItemsView[K, V](
    ItemsView[K, V], PyoMappingView[tuple[K, V]], PyoSet[tuple[K, V]]
):
    """A view of the items (key-value pairs) in a pyochain mapping.

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

    Items are represented as tuples of `(key, value)` pairs, and the view supports set-like operations.

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

    __slots__ = ()