from typing import Tuple
from typing import Any


def range(query: Tuple[int, int], field_name: str, object: Any) -> bool:
    """
    Check if value of object is in range of query
    """
    return query[0] < getattr(object, field_name) < query[1]