VerificationScreenStep

Represents a step of a VerificationScreen.

Attributes

required : bool

Whether the user must accept this step to continue.

title : str

The step's title.

The type of the step.

values : None, tuple of str

The values of the step.

Methods

__new__(...)

Creates a new verification screen step.

ParameterTypeOptionalKeyword onlyDescription
required

bool

Whether the user must accept this step to continue.

step_type

VerificationScreenStepType

The type of the step.

title

str

The step's title.

values

None, iterable of str

The values of the step.

Raises

TypeError

  • If a parameter's type is invalid.

ValueError

  • If a parameter's value is invalid.

copy()

Copies the verification screen step.

Returns

new : instance<type<self>>

copy_with(...)

Copies the verification step with the given fields.

ParameterTypeOptionalKeyword onlyDescription
required

bool

Whether the user must accept this step to continue.

step_type

VerificationScreenStepType

The type of the step.

title

str

The step's title.

values

None, iterable of str

The values of the step.

Returns

new : instance<type<self>>

Raises

TypeError

  • If a parameter's type is invalid.

ValueError

  • If a parameter's value is invalid.

from_data(data)

Creates a new verification screen step from the given data.

ParameterTypeDescription
data

dict of (str, object) items

Verification screen step data.

iter_values()

Iterates over the values of the verification screen.

This method is an iterable generator.

Yields

value : str

to_data(...)

Converts the verification screen step to a json serializable object.

ParameterTypeOptionalKeyword onlyDefaultDescription
defaults

bool

False

Whether default values should be included as well.

Returns

data : dict of (str, object)

__eq__()

Returns whether the two verification screen steps are equal

__getattr__()

Drops a rich attribute error.

__hash__()

Returns the verification screen step's hash value.

__repr__()

Returns the verification screen step's representation.