api $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#module-api">
A module for demonstrating how styles for docs produced by sphinx-autoapi look like.
Functions $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#functions" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#functions'">
|
Prompt the user for a value. |
|
Returns the sum of two numbers. |
Module Contents $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#module-contents" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#module-contents'">
- prompt(message: str, default: str | None = None) str | None $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#api.prompt" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#api.prompt'">
Prompt the user for a value.
Parameters $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#parameters" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#parameters'">
- message: str
The message to prompt the user with.
- default: str | None
The default value, by default None.
Returns: $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#returns" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#returns'">
- str | None
The value entered by the user or the default value, if the user didn’t enter anything.
- add(a: int, b: int) int $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#api.add" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#api.add'">
Returns the sum of two numbers.
Parameters $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#id1" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#id1'">
- a: int
The first number.
- b: int
The second number.
Returns: $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#id2" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#id2'">
- int
The sum of a and b.