IConstruct

class constructs.IConstruct(*args, **kwargs)

Bases: IDependable, Protocol

Represents a construct.

Methods

with_(*mixins)

Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

Parameters:

mixins (IMixin) – The mixins to apply.

Return type:

IConstruct

Returns:

This construct for chaining

Attributes

node

The tree node.