import typing


def infer_type(value: typing.Any) -> str:
    """
    Infers Sqlite column types based on Python types
    """
    try:
        int(value)
        return "INTEGER"
    except ValueError:
        pass
    try:
        float(value)
        return "REAL"
    except ValueError:
        pass
    return "TEXT"