Skip to content

PyoItemsView

Bases: PyoMappingView, PyoSet[tuple[_K_co, _V_co]], ItemsView[_K_co, _V_co], Generic[_K_co, _V_co]


              flowchart TD
              pyochain.abc._views.PyoItemsView[PyoItemsView]
              pyochain.abc._views.PyoMappingView[PyoMappingView]
              pyochain.abc._set.PyoSet[PyoSet]
              pyochain.abc._collection.PyoCollection[PyoCollection]
              pyochain.abc._iterable.PyoIterable[PyoIterable]
              pyochain.abc._collection.PyoContainer[PyoContainer]
              pyochain.abc._collection.PyoSized[PyoSized]
              pyochain.abc._mixins.Checkable[Checkable]
              pyochain.abc._mixins.Fluent[Fluent]
              pyochain.abc._mixins.Pipe[Pipe]
              pyochain.abc._mixins.Tap[Tap]

                              pyochain.abc._views.PyoMappingView --> pyochain.abc._views.PyoItemsView
                                pyochain.abc._collection.PyoSized --> pyochain.abc._views.PyoMappingView
                                pyochain.abc._mixins.Checkable --> pyochain.abc._collection.PyoSized
                


                pyochain.abc._set.PyoSet --> pyochain.abc._views.PyoItemsView
                                pyochain.abc._collection.PyoCollection --> pyochain.abc._set.PyoSet
                                pyochain.abc._iterable.PyoIterable --> pyochain.abc._collection.PyoCollection
                                pyochain.abc._mixins.Checkable --> pyochain.abc._iterable.PyoIterable
                
                pyochain.abc._mixins.Fluent --> pyochain.abc._iterable.PyoIterable
                                pyochain.abc._mixins.Pipe --> pyochain.abc._mixins.Fluent
                
                pyochain.abc._mixins.Tap --> pyochain.abc._mixins.Fluent
                


                pyochain.abc._collection.PyoContainer --> pyochain.abc._collection.PyoCollection
                                pyochain.abc._mixins.Checkable --> pyochain.abc._collection.PyoContainer
                

                pyochain.abc._collection.PyoSized --> pyochain.abc._collection.PyoCollection
                                pyochain.abc._mixins.Checkable --> pyochain.abc._collection.PyoSized
                





              click pyochain.abc._views.PyoItemsView href "" "pyochain.abc._views.PyoItemsView"
              click pyochain.abc._views.PyoMappingView href "" "pyochain.abc._views.PyoMappingView"
              click pyochain.abc._set.PyoSet href "" "pyochain.abc._set.PyoSet"
              click pyochain.abc._collection.PyoCollection href "" "pyochain.abc._collection.PyoCollection"
              click pyochain.abc._iterable.PyoIterable href "" "pyochain.abc._iterable.PyoIterable"
              click pyochain.abc._collection.PyoContainer href "" "pyochain.abc._collection.PyoContainer"
              click pyochain.abc._collection.PyoSized href "" "pyochain.abc._collection.PyoSized"
              click pyochain.abc._mixins.Checkable href "" "pyochain.abc._mixins.Checkable"
              click pyochain.abc._mixins.Fluent href "" "pyochain.abc._mixins.Fluent"
              click pyochain.abc._mixins.Pipe href "" "pyochain.abc._mixins.Pipe"
              click pyochain.abc._mixins.Tap href "" "pyochain.abc._mixins.Tap"
            

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

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 pyochain/abc/_views.pyi
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
class PyoItemsView(  # pyright: ignore[reportUnsafeMultipleInheritance]
    PyoMappingView,
    PyoSet[tuple[_K_co, _V_co]],
    ItemsView[_K_co, _V_co],
    Generic[_K_co, _V_co],  # ruff:ignore[non-pep695-generic-class]
):
    """A view of the items (key-value pairs) in a pyochain mapping.

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

    See Also:
        [`PyoMapping::items`][PyoMapping.items]: Method that returns this view.
    """
    def __new__(cls, mapping: SupportsGetItemViewable[_K_co, _V_co]) -> Self: ...  # pyright: ignore[reportInconsistentConstructor]
    @override
    # pyrefly: ignore [bad-override]
    def __contains__(self, item: tuple[object, object], /) -> bool: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    def __iter__(self) -> Iterator[tuple[_K_co, _V_co]]: ...
    @override
    # pyrefly: ignore [bad-override]
    def __and__(self, other: Iterable[Any], /) -> SetMut[tuple[_K_co, _V_co]]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __rand__[T](self, other: Iterable[T], /) -> SetMut[T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __or__[T](self, other: Iterable[T], /) -> SetMut[tuple[_K_co, _V_co] | T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __ror__[T](self, other: Iterable[T], /) -> SetMut[tuple[_K_co, _V_co] | T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __sub__[T](self, other: Iterable[Any], /) -> SetMut[tuple[_K_co, _V_co]]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __rsub__[T](self, other: Iterable[T], /) -> SetMut[T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __xor__[T](self, other: Iterable[T], /) -> SetMut[tuple[_K_co, _V_co] | T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __rxor__[T](self, other: Iterable[T], /) -> SetMut[tuple[_K_co, _V_co] | T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @classmethod
    @override
    def _from_iterable[S](cls, it: Iterable[S], /) -> set[S]: ...
    @override
    def intersection(self, other: Iterable[Any]) -> SetMut[tuple[_K_co, _V_co]]: ...
    @override
    def union[T](self, other: Iterable[T]) -> SetMut[tuple[_K_co, _V_co] | T]: ...
    @override
    def difference(self, other: Iterable[Any]) -> SetMut[tuple[_K_co, _V_co]]: ...
    @override
    def symmetric_difference[T](
        self, other: Iterable[T]
    ) -> SetMut[tuple[_K_co, _V_co] | T]: ...