Skip to main content
@overload
Hierarchy.isin(
    *members: ScalarConstantT_co,
) → MembershipCondition[TypeAliasForwardRef, ‘IN’, TypeVar] | RelationalCondition[TypeAliasForwardRef, ‘EQ’, TypeVar]
@overload
Hierarchy.isin(
    *member_paths: tuple[ScalarConstantT_co, …],
) → HierarchyMembershipCondition[‘IN’, TypeVar]
Return a condition evaluating to True where this hierarchy’s current member (or its path) is included in the given members (or member_paths), and evaluating to False elsewhere.

Parameters

members_or_member_paths

Either:
  • One or more members. In that case, all the hierarchy’s members are expected to be unique across all the levels of the hierarchy.
  • One or more member paths expressed as tuples of members starting from the top of the hierarchy.

Condition on members:
Condition on member paths:
Members and member paths cannot be mixed:
Conditions on single members are normalized to equality conditions: