HomeSort by relevance Sort by last modified time
    Searched refs:ClassVar (Results 1 - 10 of 10) sorted by null

  /external/python/cpython3/Lib/test/
dataclass_module_2.py 8 from typing import ClassVar
10 T_CV2 = ClassVar[int]
11 T_CV3 = ClassVar
18 T_CV4 = ClassVar
19 cv0: ClassVar[int] = 20
20 cv1: ClassVar = 30
23 not_cv4: T_CV4 # When using string annotations, this field is not recognized as a ClassVar.
dataclass_module_2_str.py 8 from typing import ClassVar
10 T_CV2 = ClassVar[int]
11 T_CV3 = ClassVar
18 T_CV4 = ClassVar
19 cv0: ClassVar[int] = 20
20 cv1: ClassVar = 30
23 not_cv4: T_CV4 # When using string annotations, this field is not recognized as a ClassVar.
dataclass_module_1.py 10 T_CV2 = typing.ClassVar[int]
11 T_CV3 = typing.ClassVar
18 T_CV4 = typing.ClassVar
19 cv0: typing.ClassVar[int] = 20
20 cv1: typing.ClassVar = 30
23 not_cv4: T_CV4 # When using string annotations, this field is not recognized as a ClassVar.
dataclass_module_1_str.py 10 T_CV2 = typing.ClassVar[int]
11 T_CV3 = typing.ClassVar
18 T_CV4 = typing.ClassVar
19 cv0: typing.ClassVar[int] = 20
20 cv1: typing.ClassVar = 30
23 not_cv4: T_CV4 # When using string annotations, this field is not recognized as a ClassVar.
ann_module2.py 6 from typing import no_type_check, ClassVar
34 var: ClassVar['CV']
test_typing.py 15 from typing import Generic, ClassVar
325 self.assertNotEqual(ClassVar, Union)
    [all...]
test_dataclasses.py 12 from typing import ClassVar, Any, List, Union, Tuple, Dict, Generic, TypeVar, Optional
16 import typing # Needed for the string "typing.ClassVar[int]" to work as an annotation.
646 # Because this is a ClassVar, it can be mutable.
649 z: ClassVar[typ] = typ()
651 # Because this is a ClassVar, it can be mutable.
654 x: ClassVar[typ] = Subclass()
976 z: ClassVar[int] = 1000
977 w: ClassVar[int] = 2000
978 t: ClassVar[int] = 3000
979 s: ClassVar = 400
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-pdbdump/Inputs/
TypeQualifiersTest.cpp 49 NS::Class ClassVar;
50 ClassVar.get();
51 ClassVar.help();
52 ClassVar.set();
  /external/python/cpython3/Lib/
dataclasses.py 197 # String regex that string annotations for ClassVar or InitVar must match.
580 # test if this is a ClassVar.
581 return (a_type is typing.ClassVar
583 and a_type.__origin__ is typing.ClassVar))
595 # ClassVar, then a_module is typing, and a_type is
596 # typing.ClassVar.
613 # With string annotations, cv0 will be detected as a ClassVar:
614 # CV = ClassVar
619 # But in this example cv1 will not be detected as a ClassVar:
622 # CV = ClassVar
    [all...]
typing.py 7 * _SpecialForm and its instances (special forms): Any, NoReturn, ClassVar, Union, Optional
38 'ClassVar',
124 invalid_generic_forms = invalid_generic_forms + (ClassVar, )
339 if self._name == 'ClassVar':
340 item = _type_check(parameters, 'ClassVar accepts only single type.')
384 ClassVar = _SpecialForm('ClassVar', doc=
387 An annotation wrapped in ClassVar indicates that a given
392 stats: ClassVar[Dict[str, int]] = {} # class variable
395 ClassVar accepts only types and cannot be further subscribed
    [all...]

Completed in 299 milliseconds