Searched refs:NotRequired (Results 1 - 2 of 2) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_typing.py | 31 from typing import NamedTuple, NotRequired, Required, TypedDict namespace 5164 year: NotRequired[int] 5174 year: NotRequired[int] 5180 year: NotRequired[Annotated[int, 2000]] 5184 year: NotRequired[Annotated[int, 2000]] 5188 year: NotRequired[Annotated[int, 2000]] 5192 year: NotRequired['Annotated[int, 2000]'] 5485 'year': NotRequired[int], 5491 'year': NotRequired[Annotated[int, 2000]], 5497 'year': NotRequired[Annotate [all...] |
/third_party/python/Lib/ |
H A D | typing.py | 139 'NotRequired', 2381 if hasattr(t, "__origin__") and t.__origin__ in (Required, NotRequired): 2976 elif annotation_origin is NotRequired: 3037 The Required and NotRequired special forms can also be used to mark 3042 y: NotRequired[int] # the "y" key can be omitted 3044 See PEP 655 for more details on Required and NotRequired. 3095 def NotRequired(self, parameters): function 3102 year: NotRequired[int]
|
Completed in 16 milliseconds