InquirerNumber
Bases: InquirerWidget
A number input widget that allows the user to input a numerical value.
__init__(message, name=None, input_type='integer', mandatory=False)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
The prompt message to display. |
required |
name
|
str | None
|
The name of the input field. |
None
|
input_type
|
Literal['integer', 'number']
|
The type of number input ('integer' or 'number'). |
'integer'
|
mandatory
|
bool
|
Whether the input is mandatory. |
False
|