Home
last modified time | relevance | path

Searched refs:ClassVar (Results 1 – 15 of 15) sorted by relevance

/third_party/python/Lib/test/
Ddataclass_module_2.py8 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
Ddataclass_module_2_str.py8 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
Ddataclass_module_1_str.py10 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
Ddataclass_module_1.py10 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
Dann_module6.py5 from typing import ClassVar
7 wrong: ClassVar[int] = 1
Dann_module2.py6 from typing import no_type_check, ClassVar
34 var: ClassVar['CV']
Dtest_typing.py15 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]
[all …]
Dtest_dataclasses.py14 from typing import ClassVar, Any, List, Union, Tuple, Dict, Generic, TypeVar, Optional, Protocol
672 z: ClassVar[typ] = typ()
677 x: ClassVar[typ] = Subclass()
999 z: ClassVar[int] = 1000
1000 w: ClassVar[int] = 2000
1001 t: ClassVar[int] = 3000
1002 s: ClassVar = 4000
1025 x: ClassVar[int]
1036 x: ClassVar[int] = field(default_factory=int)
1044 x: ClassVar[int] = 10
[all …]
/third_party/python/Misc/NEWS.d/
D3.7.0b5.rst327 Fix failure in `typing.get_type_hints()` when ClassVar was provided as a
369 prefixes are detected for both ClassVar ("ClassVar" and "typing.ClassVar")
D3.8.0a1.rst4749 Fix failure in `typing.get_type_hints()` when ClassVar was provided as a
4866 prefixes are detected for both ClassVar ("ClassVar" and "typing.ClassVar")
/third_party/python/Lib/
Ddataclasses.py649 return (a_type is typing.ClassVar
651 and a_type.__origin__ is typing.ClassVar))
767 and _is_type(f.type, cls, typing, typing.ClassVar,
Dtyping.py160 invalid_generic_forms += (ClassVar,)
442 def ClassVar(self, parameters): function
/third_party/python/Doc/library/
Ddataclasses.rst320 Does not return pseudo-fields which are ``ClassVar`` or ``InitVar``.
538 ``typing.ClassVar``. If a field is a ``ClassVar``, it is excluded
540 mechanisms. Such ``ClassVar`` pseudo-fields are not returned by the
Dtyping.rst46 definitions, and :data:`ClassVar`
849 .. data:: ClassVar
853 As introduced in :pep:`526`, a variable annotation wrapped in ClassVar
858 stats: ClassVar[dict[str, int]] = {} # class variable
861 :data:`ClassVar` accepts only types and cannot be further subscribed.
863 :data:`ClassVar` is not a class itself, and should not
865 :data:`ClassVar` does not change Python runtime behavior, but
/third_party/python/Doc/whatsnew/
D3.6.rst1618 The :const:`typing.ClassVar` type construct has been added to
1620 wrapped in ClassVar indicates that a given attribute is intended to be used as