Skip to content

Position

Bases: StrEnum


              flowchart TD
              pyochain._iter.Position[Position]

              

              click pyochain._iter.Position href "" "pyochain._iter.Position"
            

Type representing the position of an item in an iterable.

Source code in src/pyochain/_iter.py
54
55
56
57
58
59
60
class Position(StrEnum):
    """Type representing the position of an item in an iterable."""

    FIRST = auto()
    MIDDLE = auto()
    LAST = auto()
    ONLY = auto()