def test_positional_arg_hints(self):
   self.assertEquals(typehints.Any, _positional_arg_hints('x', {}))
   self.assertEquals(int, _positional_arg_hints('x', {'x': int}))
   self.assertEquals(typehints.Tuple[int, typehints.Any],
                     _positional_arg_hints(['x', 'y'], {'x': int}))
Beispiel #2
0
 def test_positional_arg_hints(self):
     self.assertEqual(typehints.Any, _positional_arg_hints('x', {}))
     self.assertEqual(int, _positional_arg_hints('x', {'x': int}))
     self.assertEqual(typehints.Tuple[int, typehints.Any],
                      _positional_arg_hints(['x', 'y'], {'x': int}))