Skip to content

PyoKeysView

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


              flowchart TD
              pyochain.abc._views.PyoKeysView[PyoKeysView]
              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.PyoKeysView
                                pyochain.abc._collection.PyoSized --> pyochain.abc._views.PyoMappingView
                                pyochain.abc._mixins.Checkable --> pyochain.abc._collection.PyoSized
                


                pyochain.abc._set.PyoSet --> pyochain.abc._views.PyoKeysView
                                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.PyoKeysView href "" "pyochain.abc._views.PyoKeysView"
              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 keys in a pyochain mapping.

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

See Also

PyoMapping::keys: Method that returns this view.

Source code in pyochain/abc/_views.pyi
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
class PyoKeysView(PyoMappingView, PyoSet[_K_co], KeysView[_K_co]):  # pyright: ignore[reportUnsafeMultipleInheritance]
    """A view of the keys in a pyochain mapping.

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

    See Also:
        [`PyoMapping::keys`][abc._mappings.PyoMapping.keys]: Method that returns this view.
    """

    def __init__(self, mapping: Viewable[_K_co]) -> None: ...
    @override
    def __contains__(self, key: object, /) -> bool: ...
    @override
    def __iter__(self) -> Iterator[_K_co]: ...
    @override
    # pyrefly: ignore [bad-override]
    def __and__(self, other: Iterable[Any], /) -> SetMut[_K_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[_K_co | T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __ror__[T](self, other: Iterable[T], /) -> SetMut[_K_co | T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __sub__[T](self, other: Iterable[Any], /) -> SetMut[_K_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[_K_co | T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    # pyrefly: ignore [bad-override]
    def __rxor__[T](self, other: Iterable[T], /) -> SetMut[_K_co | T]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @classmethod
    @override
    # pyrefly: ignore [bad-override]
    def _from_iterable[S](cls, it: Iterable[S], /) -> SetMut[S]: ...  # pyright: ignore[reportIncompatibleMethodOverride]
    @override
    def intersection(self, other: Iterable[Any]) -> SetMut[_K_co]: ...
    @override
    def union[S, T](self: PyoKeysView[S], other: Iterable[T]) -> SetMut[S | T]: ...
    @override
    def difference(self, other: Iterable[Any]) -> SetMut[_K_co]: ...
    @override
    def symmetric_difference[S, T](
        self: PyoKeysView[S], other: Iterable[T]
    ) -> SetMut[S | T]: ...