{ } Raw JSON

bundles / papyri latest / papyri / examples / keyword_only

function

papyri.examples:keyword_only

source: /papyri/examples.py:603

Signature

def keyword_only(*, name: str, count: int = 1) → str

Summary

Repeat name count times; both parameters are keyword-only.

Parameters

name : str

Value to repeat. Must be passed by keyword.

count : int, optional

Repetition count. Defaults to 1.

Returns

: str

name concatenated count times.

See also

mixed_signature

Combined variant touching every parameter kind.

positional_only

Positional-only mirror of this signature.

Aliases

  • papyri.examples.keyword_only