@@ -25,7 +25,7 @@ def func(a: int) -> float:
2525 python .arg (name = "a" , type = int ),
2626 python .arg (name = "function" , type = ty .Callable , default = func ),
2727 ]
28- assert outputs == [python .out (name = "out" , type = float , order = 0 )]
28+ assert outputs == [python .out (name = "out" , type = float )]
2929 definition = SampleDef (a = 1 )
3030 outputs = definition ()
3131 assert outputs .out == 2.0
@@ -48,7 +48,7 @@ def func(a: int, k: float = 2.0) -> float:
4848 python .arg (name = "function" , type = ty .Callable , default = func ),
4949 python .arg (name = "k" , type = float , default = 2.0 ),
5050 ]
51- assert outputs == [python .out (name = "out" , type = float , order = 0 )]
51+ assert outputs == [python .out (name = "out" , type = float )]
5252 assert SampleDef (a = 1 )().out == 2.0
5353 assert SampleDef (a = 10 , k = 3.0 )().out == 30.0
5454
@@ -72,7 +72,7 @@ def func(a: int) -> float:
7272 python .arg (name = "function" , type = ty .Callable , default = func ),
7373 ]
7474 assert outputs == [
75- python .out (name = "b" , type = Decimal , help = "the doubled output" , order = 0 ),
75+ python .out (name = "b" , type = Decimal , help = "the doubled output" ),
7676 ]
7777 outputs = SampleDef .Outputs (b = Decimal (2.0 ))
7878 assert isinstance (outputs .b , Decimal )
@@ -96,7 +96,7 @@ def func(a: int) -> int:
9696 python .arg (name = "a" , type = float ),
9797 python .arg (name = "function" , type = ty .Callable , default = func ),
9898 ]
99- assert outputs == [python .out (name = "b" , type = float , order = 0 )]
99+ assert outputs == [python .out (name = "b" , type = float )]
100100 intf = SampleDef (a = 1 )
101101 assert isinstance (intf .a , float )
102102 outputs = SampleDef .Outputs (b = 2.0 )
@@ -122,8 +122,8 @@ def SampleDef(a: int, b: float) -> tuple[float, float]:
122122 ),
123123 ]
124124 assert outputs == [
125- python .out (name = "c" , type = float , order = 0 ),
126- python .out (name = "d" , type = float , order = 1 ),
125+ python .out (name = "c" , type = float ),
126+ python .out (name = "d" , type = float ),
127127 ]
128128 assert attrs .fields (SampleDef ).function .default .__name__ == "SampleDef"
129129 SampleDef .Outputs (c = 1.0 , d = 2.0 )
@@ -153,8 +153,8 @@ def SampleDef(a: int, b: float) -> tuple[float, float]:
153153 ),
154154 ]
155155 assert outputs == [
156- python .out (name = "c" , type = float , help = "Sum of a and b" , order = 0 ),
157- python .out (name = "d" , type = float , help = "product of a and b" , order = 1 ),
156+ python .out (name = "c" , type = float , help = "Sum of a and b" ),
157+ python .out (name = "d" , type = float , help = "product of a and b" ),
158158 ]
159159 assert attrs .fields (SampleDef ).function .default .__name__ == "SampleDef"
160160
@@ -187,8 +187,8 @@ def SampleDef(a: int, b: float) -> tuple[float, float]:
187187 ),
188188 ]
189189 assert outputs == [
190- python .out (name = "c" , type = float , help = "Sum of a and b" , order = 0 ),
191- python .out (name = "d" , type = float , help = "Product of a and b" , order = 1 ),
190+ python .out (name = "c" , type = float , help = "Sum of a and b" ),
191+ python .out (name = "d" , type = float , help = "Product of a and b" ),
192192 ]
193193 assert attrs .fields (SampleDef ).function .default .__name__ == "SampleDef"
194194
@@ -229,8 +229,8 @@ def SampleDef(a: int, b: float) -> tuple[float, float]:
229229 ),
230230 ]
231231 assert outputs == [
232- python .out (name = "c" , type = float , help = "Sum of a and b" , order = 0 ),
233- python .out (name = "d" , type = float , help = "Product of a and b" , order = 1 ),
232+ python .out (name = "c" , type = float , help = "Sum of a and b" ),
233+ python .out (name = "d" , type = float , help = "Product of a and b" ),
234234 ]
235235 assert attrs .fields (SampleDef ).function .default .__name__ == "SampleDef"
236236
@@ -276,8 +276,8 @@ def function(a, b):
276276 ),
277277 ]
278278 assert outputs == [
279- python .out (name = "c" , type = float , help = "Sum of a and b" , order = 0 ),
280- python .out (name = "d" , type = float , help = "Product of a and b" , order = 1 ),
279+ python .out (name = "c" , type = float , help = "Sum of a and b" ),
280+ python .out (name = "d" , type = float , help = "Product of a and b" ),
281281 ]
282282 assert SampleDef .function .__name__ == "function"
283283 SampleDef (a = 1 )
@@ -346,8 +346,8 @@ def function(a, b):
346346 ),
347347 ]
348348 assert outputs == [
349- python .out (name = "c" , type = float , help = "Sum of a and b" , order = 0 ),
350- python .out (name = "d" , type = float , help = "Product of a and b" , order = 1 ),
349+ python .out (name = "c" , type = float , help = "Sum of a and b" ),
350+ python .out (name = "d" , type = float , help = "Product of a and b" ),
351351 ]
352352 assert SampleDef .function .__name__ == "function"
353353 SampleDef (a = 1 , b = 2.0 )
0 commit comments