AliasChoices
A data class used by validation_alias as a convenience to create aliases.
Attributes
| Attribute | Type | Description |
|---|---|---|
| choices | `list[str | AliasPath]` |
Constructor
Signature
def AliasChoices(
first_choice: str | AliasPath,
*choices: str | AliasPath
) - > None
Parameters
| Name | Type | Description |
|---|---|---|
| first_choice | `str | AliasPath` |
| *choices | `str | AliasPath` |
Signature
def AliasChoices(
first_choice: str | AliasPath,
*choices: str | AliasPath
)
Parameters
| Name | Type | Description |
|---|---|---|
| first_choice | `str | AliasPath` |
| *choices | `str | AliasPath` |
Methods
convert_to_aliases()
@classmethod
def convert_to_aliases() - > list[list[str | int]]
Converts arguments to a list of lists containing string or integer aliases.
Returns
| Type | Description |
|---|---|
| `list[list[str | int]]` |