API reference
python:astx:astx.collections.common.CollectionIsEmpty
class CollectionIsEmpty
CollectionIsEmpty(base: astx.AST)
Source: packages/astx/src/astx/collections/common.py:65
Common collection emptiness query node.
Return whether a list, tuple, set, or dictionary has no logical entries.
Attributes
-
base — Type: astx.AST
-
type_ — Type: astx.Boolean
Methods
-
__init__ — Initialize one collection emptiness query.
-
get_struct — Return the structured representation.