API reference
python:astx:astx.IsInstanceExpr
class IsInstanceExpr
IsInstanceExpr(value: astx.Expr, target_type: astx.DataType)
Source: packages/astx/src/astx/system.py:190
Declared as: python:astx:astx.system.IsInstanceExpr
IsInstanceExpr AST class.
Represent a type-membership check against one target type.
Attributes
-
value — Type: astx.Expr
-
target_type — Type: astx.DataType
-
type_ — Type: astx.Boolean
Methods
-
__init__ — Initialize IsInstanceExpr.
-
get_struct — Return the AST structure of the isinstance expression.