@@ -109,10 +109,10 @@ def test_add_vals_to_signature(self):
109
109
vals = {'a' : {'name' : 3 }, 'b' : 3 }
110
110
111
111
expected = type_annotations .Signature (parameters = [{'a' : Dict [float , int ], 'b' : int },
112
- {'a' : Dict [str , int ], 'b' : int },
113
- {'a' : Dict [float , str ], 'b' : int },
114
- {'a' : Dict [str , str ], 'b' : int }],
115
- defaults = {'a' : {'name' : 3 }, 'b' : 3 })
112
+ {'a' : Dict [str , int ], 'b' : int },
113
+ {'a' : Dict [float , str ], 'b' : int },
114
+ {'a' : Dict [str , str ], 'b' : int }],
115
+ defaults = {'a' : {'name' : 3 }, 'b' : 3 })
116
116
117
117
result = type_annotations .add_vals_to_signature (signature , vals )
118
118
@@ -178,14 +178,14 @@ def test_product_annotations(self):
178
178
'c' : [T , bool ], 'd' : [int ]}, {'d' : 3 })
179
179
180
180
expected = type_annotations .Signature (parameters = [{'a' : int , 'b' : Dict [int , float ], 'c' : int , 'd' : int },
181
- {'a' : str , 'b' : Dict [str , float ], 'c' : str , 'd' : int },
182
- {'a' : int , 'b' : Dict [int , bool ], 'c' : int , 'd' : int },
183
- {'a' : str , 'b' : Dict [str , bool ], 'c' : str , 'd' : int },
184
- {'a' : int , 'b' : Dict [int , float ], 'c' : bool , 'd' : int },
185
- {'a' : str , 'b' : Dict [str , float ], 'c' : bool , 'd' : int },
186
- {'a' : int , 'b' : Dict [int , bool ], 'c' : bool , 'd' : int },
187
- {'a' : str , 'b' : Dict [str , bool ], 'c' : bool , 'd' : int }],
188
- defaults = {'d' : 3 })
181
+ {'a' : str , 'b' : Dict [str , float ], 'c' : str , 'd' : int },
182
+ {'a' : int , 'b' : Dict [int , bool ], 'c' : int , 'd' : int },
183
+ {'a' : str , 'b' : Dict [str , bool ], 'c' : str , 'd' : int },
184
+ {'a' : int , 'b' : Dict [int , float ], 'c' : bool , 'd' : int },
185
+ {'a' : str , 'b' : Dict [str , float ], 'c' : bool , 'd' : int },
186
+ {'a' : int , 'b' : Dict [int , bool ], 'c' : bool , 'd' : int },
187
+ {'a' : str , 'b' : Dict [str , bool ], 'c' : bool , 'd' : int }],
188
+ defaults = {'d' : 3 })
189
189
190
190
result = type_annotations .product_annotations (annotations )
191
191
0 commit comments