src/table_validator/api.py
def type_validator(candidate: List[List[Any]], row: int, column: int, cls: type) -> bool:
    """Validate a cell for having the given type."""
    value = candidate[row][column]

    try:
        cls(value)
    except ValueError:
        return False
    else:
        return True
Validate a cell for having the given type.
Validate a cell for having the given type.
Validate a cell for having the given type .
def type_validator(candidate: List[List[Any]], row: int, column: int, cls: type) -> bool:
    value = candidate[row][column]
    try:
        cls(value)
    except ValueError:
        return False
    else:
        return True
def type_validator ( candidate : List [ List [ Any ] ] , row : int , column : int , cls : type ) -> bool : value = candidate [ row ] [ column ] try : cls ( value ) except ValueError : return False else : return True
Validate a cell for having the given type.
Validate a cell for having the given type .
"""Validate a cell for having the given type."""
candidate
List[List[Any]]
row
int
column
int
cls
type