(cls, kwargs) = items
yield (cls, dict(kwargs))
- @staticmethod
- def filter(cls):
- return lambda pair: issubclass(pair[0], cls)
-
@cached_property
def static(self):
- return filter(self.__class__.filter(StaticOperand), self)
+ return tuple(filter(lambda pair: issubclass(pair[0], StaticOperand), self))
- @property
+ @cached_property
def dynamic(self):
- return filter(self.__class__.filter(DynamicOperand), self)
+ return tuple(filter(lambda pair: issubclass(pair[0], DynamicOperand), self))
class Arguments(tuple):