API reference
python:astx:astx.collections.CollectionContains
class CollectionContains
CollectionContains(base: astx.AST, value: astx.AST)
Source: packages/astx/src/astx/collections/common.py:111
Declared as: python:astx:astx.collections.common.CollectionContains
Common collection containment query node.
Return whether a list, tuple, or set contains a value, or whether a dictionary contains a key.
Attributes
-
base — Type: astx.AST
-
value — Type: astx.AST
-
type_ — Type: astx.Boolean
Methods
-
__init__ — Initialize one collection containment query.
-
get_struct — Return the structured representation.