Searched refs:KEYWORD_ONLY (Results 1 – 8 of 8) sorted by relevance
/external/python/funcsigs/tests/ |
D | test_inspect.py | 667 P.VAR_POSITIONAL < P.KEYWORD_ONLY < P.VAR_KEYWORD) 707 p = P('foo', default=42, kind=inspect.Parameter.KEYWORD_ONLY) 713 kind=inspect.Parameter.KEYWORD_ONLY)) 717 kind=inspect.Parameter.KEYWORD_ONLY) 724 kind=inspect.Parameter.KEYWORD_ONLY) 756 p2 = p2.replace(kind=p2.KEYWORD_ONLY)
|
/external/python/funcsigs/docs/ |
D | index.rst | 172 (accessible via :class:`Parameter`, like ``Parameter.KEYWORD_ONLY``): 196 | *KEYWORD_ONLY* | Value must be supplied as a keyword argument.| 214 ... if (param.kind == param.KEYWORD_ONLY and 229 >>> param = Parameter('foo', Parameter.KEYWORD_ONLY, default=42)
|
/external/python/cpython3/Lib/ |
D | inspect.py | 2072 kind = Parameter.KEYWORD_ONLY 2411 KEYWORD_ONLY = 3 variable in _ParameterKind 2421 _KEYWORD_ONLY = _ParameterKind.KEYWORD_ONLY 2462 KEYWORD_ONLY = _KEYWORD_ONLY variable in Parameter
|
/external/python/cpython3/Lib/test/ |
D | test_inspect.py | 3060 P.VAR_POSITIONAL < P.KEYWORD_ONLY < P.VAR_KEYWORD) 3118 p = P('foo', default=42, kind=inspect.Parameter.KEYWORD_ONLY) 3128 kind=inspect.Parameter.KEYWORD_ONLY)) 3130 kind=inspect.Parameter.KEYWORD_ONLY)) 3134 kind=inspect.Parameter.KEYWORD_ONLY) 3169 p2 = p2.replace(kind=p2.KEYWORD_ONLY) 3190 p = inspect.Parameter('spam', kind=inspect.Parameter.KEYWORD_ONLY)
|
D | test_clinic.py | 424 self.assertEqual(inspect.Parameter.KEYWORD_ONLY, p.kind)
|
/external/python/funcsigs/funcsigs/ |
D | __init__.py | 232 KEYWORD_ONLY = _KEYWORD_ONLY variable in Parameter
|
/external/python/cpython3/Doc/library/ |
D | inspect.rst | 706 (accessible via :class:`Parameter`, like ``Parameter.KEYWORD_ONLY``): 732 | *KEYWORD_ONLY* | Value must be supplied as a keyword argument.| 750 ... if (param.kind == param.KEYWORD_ONLY and 765 >>> param = Parameter('foo', Parameter.KEYWORD_ONLY, default=42)
|
/external/python/cpython3/Tools/clinic/ |
D | clinic.py | 2169 return self.kind == inspect.Parameter.KEYWORD_ONLY 3898 …kind = inspect.Parameter.KEYWORD_ONLY if self.keyword_only else inspect.Parameter.POSITIONAL_OR_KE… 4293 no_parameter_after_star = last_parameter.kind != inspect.Parameter.KEYWORD_ONLY 4391 if parameter.kind == inspect.Parameter.KEYWORD_ONLY:
|