class SortCodeAccountNumber(selector=None, default=_NO_DEFAULT)[source]

Bases: Filter

Return the input only if it is a valid Sortcode account number.


This method has to be overridden by children classes.

exception SortCodeAccountNumberFormatError[source]

Bases: FilterError


Return the canonical form of the given sort code account number.

This function also checks if the provided sort code account number is valid, and raises a ValueError in case it is not.