activity.types ============== .. py:module:: activity.types Classes ------- .. autoapisummary:: activity.types.BoundedIntegerRange Module Contents --------------- .. py:class:: BoundedIntegerRange(lower: int, upper: int, *, bounds: Literal['()', '[)', '(]', '[]'] = '[)', empty: bool = False) Bases: :py:obj:`sqlalchemy.dialects.postgresql.Range`\ [\ :py:obj:`int`\ ] Represent a PostgreSQL range. E.g.:: r = Range(10, 50, bounds="()") The calling style is similar to that of psycopg and psycopg2, in part to allow easier migration from previous SQLAlchemy versions that used these objects directly. :param lower: Lower bound value, or None :param upper: Upper bound value, or None :param bounds: keyword-only, optional string value that is one of ``"()"``, ``"[)"``, ``"(]"``, ``"[]"``. Defaults to ``"[)"``. :param empty: keyword-only, optional bool indicating this is an "empty" range .. versionadded:: 2.0 .. py:property:: upper :type: int the upper bound .. py:property:: lower :type: int the lower bound