Lines Matching refs:ClassVar
15 from typing import Generic, ClassVar, Final, final, Protocol
352 self.assertNotEqual(ClassVar, Union)
2034 ClassVar[ClassVar]
2036 List[ClassVar[int]]
2097 samples = [Any, Union, Tuple, Callable, ClassVar,
2098 Union[int, str], ClassVar[List], Tuple[int, ...], Callable[[str], bytes],
2119 typing.Dict[T, Any], ClassVar[int], ClassVar[List[T]], Tuple['T', 'T'],
2132 for X in [TP, TPB, TPV, List, typing.Mapping, ClassVar, typing.Iterable,
2435 ClassVar[int],
2454 ClassVar[1]
2456 ClassVar[int, str]
2458 ClassVar[int][str]
2461 self.assertEqual(repr(ClassVar), 'typing.ClassVar')
2462 cv = ClassVar[int]
2464 cv = ClassVar[Employee]
2469 class C(type(ClassVar)):
2472 class C(type(ClassVar[int])):
2477 ClassVar()
2479 type(ClassVar)()
2481 type(ClassVar[Optional[int]])()
2485 isinstance(1, ClassVar[int])
2487 issubclass(int, ClassVar)
2839 foo: typing.ClassVar[int] = 7
2841 foo: ClassVar[int] = 7
2847 expected_result = {'foo': typing.ClassVar[int]}
2855 foo: ClassVar['ClassVar[int]'] = 7
2980 x: ClassVar[Optional['B']] = None
2984 z: ClassVar['CSub'] = B()
2986 lst: ClassVar[List[T]] = []
3153 {'var': typing.ClassVar[ann_module2.CV]})
3155 {'y': int, 'x': ClassVar[Optional[B]], 'b': int})
3157 {'z': ClassVar[CSub], 'y': int, 'b': int,
3158 'x': ClassVar[Optional[B]]})
3159 self.assertEqual(gth(G), {'lst': ClassVar[List[T]]})
3290 self.assertIs(get_origin(ClassVar[int]), ClassVar)
3313 self.assertEqual(get_args(ClassVar[int]), (int,))
4910 typing.ClassVar: 'ClassVar',
4924 typing.ClassVar[Any]: 'ClassVar',