golemfactory/golem-core-python

`Resource._get_children(child_type)`

Opened this issue · 0 comments

This is a not really important internal micro-improvement.

We have in various places things like:

def debit_notes(self) -> List[DebitNote]:
    return [child for child in self.children if isinstance(child, DebitNote)]

--> we could have Resource._get_children method that returns children of a given type.