Home
last modified time | relevance | path

Searched refs:contravariant (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/
Dtyping.py722 def __init__(self, bound, covariant, contravariant): argument
726 if covariant and contravariant:
729 self.__contravariant__ = bool(contravariant)
802 covariant=False, contravariant=False): argument
804 super().__init__(bound, covariant, contravariant)
924 def __init__(self, name, *, bound=None, covariant=False, contravariant=False): argument
926 super().__init__(bound, covariant, contravariant)
2080 T_contra = TypeVar('T_contra', contravariant=True) # Ditto contravariant.
/external/clang/test/SemaObjC/
Dcomptypes-legal.m34 …s this (it has some fiarly new support for covariant return types and contravariant argument types…
Dparameterized_classes.m355 @interface Variance1<__contravariant X, // expected-error{{contravariant type parameter 'X' conflic…
356 … expected-error{{covariant type parameter 'Y' conflicts with previous contravariant type parameter…
361 @interface Variance2<__contravariant T, // expected-error{{contravariant type parameter 'T' conflic…
362 … expected-error{{invariant type parameter 'U' conflicts with previous contravariant type parameter…
Dkindof.m352 // Other covariant and contravariant conversions still not permitted.
/external/python/typing/typing_extensions/src/
Dtyping_extensions.py143 T_contra = typing.TypeVar('T_contra', contravariant=True) # Ditto contravariant.
1154 def __init__(self, name, *, bound=None, covariant=False, contravariant=False): argument
1158 self.__contravariant__ = bool(contravariant)
Dtest_typing_extensions.py2095 P_contra = ParamSpec('P_contra', contravariant=True)
2183 P_contra = ParamSpec('P_contra', contravariant=True)
/external/python/setuptools/setuptools/_vendor/
Dtyping_extensions.py123 T_contra = typing.TypeVar('T_contra', contravariant=True) # Ditto contravariant.
1672 def __init__(self, name, *, bound=None, covariant=False, contravariant=False): argument
1676 self.__contravariant__ = bool(contravariant)
/external/python/typing/typing_extensions/
D__init__.py184 T_contra = typing.TypeVar('T_contra', contravariant=True) # Ditto contravariant.
1824 def __init__(self, name, *, bound=None, covariant=False, contravariant=False): argument
1828 self.__contravariant__ = bool(contravariant)
/external/python/cpython3/Doc/library/
Dtyping.rst1110 Type variables may be marked covariant or contravariant by passing
1111 ``covariant=True`` or ``contravariant=True``. See :pep:`484` for more
1118 .. class:: ParamSpec(name, *, bound=None, covariant=False, contravariant=False)
1182 ``contravariant=True`` can be used to declare covariant or contravariant
/external/python/cpython3/Lib/test/
Dtest_typing.py212 T_contra = TypeVar('T_contra', contravariant=True)
248 TypeVar('T', covariant=True, contravariant=True)