Hierarchy.isin(*members: ScalarConstantT_co) → MembershipCondition[TypeAliasForwardRef, ‘IN’, TypeVar] | RelationalCondition[TypeAliasForwardRef, ‘EQ’, TypeVar]
Hierarchy.isin(*member_paths: tuple[ScalarConstantT_co, …]) → HierarchyMembershipCondition[‘IN’, TypeVar]
Return a condition evaluating toTrue 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.