Slice
class Slice[T, U, V]
Fields
6
start
Optional[T]
stop
Optional[U]
step
Optional[V]
T
type
U
type
V
type
Constructors
3
__new__[U: type = int](stop: Optional[U], /) -> Slice[(int, U, int)]
Defined in
internal.types.slice__new__[T: type = int, U: type = int](start: Optional[T], stop: Optional[U], /) -> Slice[(T, U, int)]
Defined in
internal.types.slice__new__[T: type = int, U: type = int, V: type = int](start: Optional[T], stop: Optional[U], step: Optional[V], /) -> Slice[(T, U, V)]
Defined in
internal.types.slice
Methods
3
adjust_indices(self: Self, length: int) -> Tuple[(int, int, int, int)]
Defined in
internal.types.sliceadjust_indices_helper(length: int, start: int, stop: int, step: int) -> Tuple[(int, int, int, int)]
Defined in
internal.types.slice
Special methods
5