MCPcopy
hub / github.com/pathwaycom/pathway / transformer2

Class transformer2

python/pathway/tests/test_transformers.py:784–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782
783 @transformer
784 class transformer2:
785 # reusing the names on purpose for more testing
786 class hypers(ClassArg):
787 a: int = input_attribute()
788
789 class table(ClassArg):
790 a: int = input_attribute()
791 h: int = input_attribute()
792
793 @output_attribute
794 def b(self) -> int:
795 return self.a * 100 + self.transformer.hypers[self.h].a
796
797 @method
798 def c(self, arg) -> int:
799 return (self.a + self.b) * arg
800
801 @transformer
802 class transformer_common:

Callers 2

test_twoclass_methodFunction · 0.85
test_twoclass_method2Function · 0.85

Calls

no outgoing calls

Tested by 2

test_twoclass_methodFunction · 0.68
test_twoclass_method2Function · 0.68