Added is_empty as property of CombinableInstructions.

This commit is contained in:
Geoff Taylor 2022-03-02 18:46:33 +00:00
parent a12b238217
commit bbc52ebead
1 changed files with 4 additions and 0 deletions

View File

@ -272,6 +272,10 @@ class CombinableInstructions:
signers=all_signers, instructions=all_instructions
)
@property
def is_empty(self) -> bool:
return len(self.signers) == 0 and len(self.instructions) == 0
def execute(
self, context: Context, on_exception_continue: bool = False
) -> typing.Sequence[str]: