Searched refs:KEYWORD_ONLY (Results 1 – 5 of 5) sorted by relevance
2231 kind = Parameter.KEYWORD_ONLY2573 KEYWORD_ONLY = 3 variable in _ParameterKind2586 _KEYWORD_ONLY = _ParameterKind.KEYWORD_ONLY2625 KEYWORD_ONLY = _KEYWORD_ONLY variable in Parameter
418 self.assertEqual(inspect.Parameter.KEYWORD_ONLY, p.kind)
3587 P.VAR_POSITIONAL < P.KEYWORD_ONLY < P.VAR_KEYWORD)3645 p = P('foo', default=42, kind=inspect.Parameter.KEYWORD_ONLY)3655 kind=inspect.Parameter.KEYWORD_ONLY))3657 kind=inspect.Parameter.KEYWORD_ONLY))3661 kind=inspect.Parameter.KEYWORD_ONLY)3696 p2 = p2.replace(kind=p2.KEYWORD_ONLY)3717 p = inspect.Parameter('spam', kind=inspect.Parameter.KEYWORD_ONLY)
753 (accessible via :class:`Parameter`, like ``Parameter.KEYWORD_ONLY``):775 | *KEYWORD_ONLY* | Value must be supplied as a keyword argument.|793 ... if (param.kind == param.KEYWORD_ONLY and827 >>> param = Parameter('foo', Parameter.KEYWORD_ONLY, default=42)
2305 return self.kind == inspect.Parameter.KEYWORD_ONLY4573 …kind = inspect.Parameter.KEYWORD_ONLY if self.keyword_only else inspect.Parameter.POSITIONAL_OR_KE…4986 no_parameter_after_star = last_parameter.kind != inspect.Parameter.KEYWORD_ONLY5091 if parameter.kind == inspect.Parameter.KEYWORD_ONLY: