Home
last modified time | relevance | path

Searched refs:Annotated (Results 1 - 3 of 3) sorted by relevance

/third_party/python/Lib/test/
H A D_typed_dict_helper.py10 In addition, it uses multiple levels of Annotated to test the interaction
11 between the __future__ import, Annotated, and Required.
16 from typing import Annotated, Generic, Optional, Required, TypedDict, TypeVar namespace
30 a: Annotated[Annotated[Annotated[Required[int], "a"], "b"], "c"]
H A Dtest_typing.py34 from typing import Annotated, ForwardRef namespace
4733 a: Annotated['ClassVar[int]', (3, 5)] = 4
4734 b: Annotated['Final[int]', "const"] = 4
5177 title: Annotated[Annotated[Required[str], "foobar"], "another level"]
5180 year: NotRequired[Annotated[int, 2000]]
5183 title: Annotated[Required[str], "foobar"]
5184 year: NotRequired[Annotated[int, 2000]]
5187 title: Annotated[Annotated[Require
[all...]
/third_party/python/Lib/
H A Dtyping.py45 'Annotated',
2103 At its core 'Annotated[t, dec1, dec2, ...]' is an alias for the type 't'
2124 return "typing.Annotated[{}, {}]".format(
2131 Annotated, (self.__origin__,) + self.__metadata__
2145 return 'Annotated'
2149 class Annotated: class
2152 Example: Annotated[int, runtime_check.Unsigned] indicates to the
2157 The first argument to Annotated must be a valid type.
2161 - It's an error to call `Annotated` with less than two arguments.
2164 assert Annotated[in
[all...]

Completed in 13 milliseconds