Searched refs:POSITIONAL_ONLY (Results 1 – 9 of 9) sorted by relevance
/external/python/funcsigs/tests/ |
D | test_inspect.py | 666 self.assertTrue(P.POSITIONAL_ONLY < P.POSITIONAL_OR_KEYWORD < \ 669 self.assertEqual(str(P.POSITIONAL_ONLY), 'POSITIONAL_ONLY') 670 self.assertTrue('POSITIONAL_ONLY' in repr(P.POSITIONAL_ONLY)) 674 kind=inspect.Parameter.POSITIONAL_ONLY) 678 self.assertEqual(p.kind, inspect.Parameter.POSITIONAL_ONLY) 760 p = inspect.Parameter(None, kind=inspect.Parameter.POSITIONAL_ONLY) 767 p = inspect.Parameter(None, kind=inspect.Parameter.POSITIONAL_ONLY)
|
/external/python/cpython3/Lib/test/ |
D | test_inspect.py | 821 spam_param = inspect.Parameter('spam', inspect.Parameter.POSITIONAL_ONLY) 1962 po = sig.parameters['po'].replace(kind=P.POSITIONAL_ONLY) 1963 pod = sig.parameters['pod'].replace(kind=P.POSITIONAL_ONLY) 2013 myparam = MyParameter(name='z', kind=inspect.Parameter.POSITIONAL_ONLY) 2545 params['a'] = params['a'].replace(kind=Parameter.POSITIONAL_ONLY) 2546 params['b'] = params['b'].replace(kind=Parameter.POSITIONAL_ONLY) 2983 new_params[0] = new_params[0].replace(kind=P.POSITIONAL_ONLY) 2989 self.assertEqual(str(S(parameters=[P('foo', P.POSITIONAL_ONLY)])), 2993 P('foo', P.POSITIONAL_ONLY), 2998 P('foo', P.POSITIONAL_ONLY), [all …]
|
D | test_clinic.py | 457 self.assertEqual(p.kind, inspect.Parameter.POSITIONAL_ONLY) 517 self.assertEqual(p.kind, inspect.Parameter.POSITIONAL_ONLY)
|
D | test_decimal.py | 5514 POS = inspect._ParameterKind.POSITIONAL_ONLY
|
/external/python/funcsigs/docs/ |
D | index.rst | 156 name (with the exception of ``POSITIONAL_ONLY`` parameters, which can have 177 | *POSITIONAL_ONLY* | Value must be supplied as a positional |
|
/external/python/cpython3/Lib/ |
D | inspect.py | 2058 kind = Parameter.POSITIONAL_ONLY 2095 p = parameters[0].replace(kind=Parameter.POSITIONAL_ONLY) 2408 POSITIONAL_ONLY = 0 variable in _ParameterKind 2418 _POSITIONAL_ONLY = _ParameterKind.POSITIONAL_ONLY 2459 POSITIONAL_ONLY = _POSITIONAL_ONLY variable in Parameter
|
/external/python/funcsigs/funcsigs/ |
D | __init__.py | 229 POSITIONAL_ONLY = _POSITIONAL_ONLY variable in Parameter
|
/external/python/cpython3/Tools/clinic/ |
D | clinic.py | 2172 return self.kind == inspect.Parameter.POSITIONAL_ONLY 3585 …p_self = Parameter(sc.name, inspect.Parameter.POSITIONAL_ONLY, function=self.function, converter=s… 3908 kind = inspect.Parameter.POSITIONAL_ONLY 3976 p.kind = inspect.Parameter.POSITIONAL_ONLY
|
/external/python/cpython3/Doc/library/ |
D | inspect.rst | 713 | *POSITIONAL_ONLY* | Value must be supplied as a positional | 777 to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``.
|