BaseInstruction¶ class BaseInstruction[source]¶ Bases: ABC Define the common interface for every instruction. abstract property id: int¶ Return the unique instruction identifier. Returns: Instruction identifier. Return type: int abstractmethod perform(*args, **kwargs)[source]¶ Execute the instruction. Parameters: args – Positional arguments required during execution. kwargs – Keyword arguments required during execution.