internal.types.slice

Standard library module View source
class Slice
@tuple
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__
__new__(stop: Optional[U], U: type = int)
__new__
@overload
__new__(start: Optional[T], stop: Optional[U], T: type = int, U: type = int)
__new__
@overload
__new__(start: Optional[T], stop: Optional[U], step: Optional[V], T: type = int, U: type = int, V: type = int)
Methods 3
adjust_indices
adjust_indices(self, length: int)
adjust_indices_helper
adjust_indices_helper(length: int, start: int, stop: int, step: int)
indices
indices(self, length: int)
Special methods 3
__repr__
@overload
__repr__(self)
__eq__
@overload
__eq__(self, other: Slice)
__ne__
@overload
__ne__(self, other: Slice)