Lines Matching refs:str
306 self.assertIn("was never closed", str(cm.exception))
343 var2: [int, str]
355 check_syntax_error(self, "x: int: str")
382 st: str = "Hello"
405 s: str = "attr"
409 self.assertEqual(C.__annotations__, {'_C__foo': int, 's': str})
425 attr: str
434 self.assertEqual(C.__annotations__, {"attr" : str})
452 {1: 2, 'x': int, 'y': str, 'f': typing.Tuple[int, int], 'u': int | float})
480 exec('X: int; Z: str = "Z"; (w): complex = 1j', ns)
482 self.assertEqual(ns['__annotations__']['z'], str)
512 exec('X: str', {}, CNS2())
513 self.assertEqual(nonloc_ns['__annotations__']['x'], str)
655 str('x', **{b'foo':1 })
700 def f(*x: str): pass
701 self.assertEqual(f.__annotations__, {'x': str})
1550 msg=r'indices must be integers or slices, not str;'
1627 self.assertEqual(str(L), '[1, (1,), (1, 2), (1, 2, 3)]')