API reference

python:astx:astx.SubscriptExpr.is_slice

attribute is_slice

is_slice: bool = index is None or any((bound is not None) for bound in (lower, upper, step))

Source: packages/astx/src/astx/subscript.py:108

Declared as: python:astx:astx.subscript.SubscriptExpr.is_slice

Distinguish omitted slice bounds from an explicit none index.

Search documentation

Type to search.