bundles / papyri latest / papyri / examples / positional_only
function
papyri.examples:positional_only
source: /papyri/examples.py :580
Signature
def positional_only ( a : int , b : int , / ) → int Summary
Sum a and b; both parameters are positional-only.
Parameters
a, b: intOperands; cannot be passed by keyword.
Returns
: inta + b.
See also
- keyword_only
The keyword-only mirror image of this signature.
- mixed_signature
A signature that touches every
Parameter.kind.
Aliases
-
papyri.examples.positional_only