MCPcopy Index your code
hub / github.com/faust-streaming/faust / Point

Class Point

tests/functional/test_models.py:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95def test_paramters_with_custom_init():
96 class Point(Record, include_metadata=False):
97 x: int
98 y: int
99
100 def __init__(self, x, y, **kwargs):
101 self.x = x
102 self.y = y
103
104 p = Point(30, 10)
105 assert p.x == 30

Calls

no outgoing calls