(self, case_type)
return set(p[0] for p in parent_types)
Get a list of all possible parent types for a case type

        Unlike `get_case_relationships`, it doesn't include the `relationship`.
        That is because it is almost always "parent". Presumably, if this method is used
        without care, it will cause bugs in the rarer case when relationship is *not* "parent".
        # todo audit usage to see if such bugs can occur

        :param case_type: case type to get the parent types of
        :return: set of parent types (strings)
Get a list of all possible parent types for a case type
Get a list of all possible parent types for a case type
def get_parent_types(self, case_type):
        """
        Get a list of all possible parent types for a case type

        Unlike `get_case_relationships`, it doesn't include the `relationship`.
        That is because it is almost always "parent". Presumably, if this method is used
        without care, it will cause bugs in the rarer case when relationship is *not* "parent".
        # todo audit usage to see if such bugs can occur

        :param case_type: case type to get the parent types of
        :return: set of parent types (strings)

        """
        parent_types = self.get_case_relationships_for_case_type(case_type)
        return set(p[0] for p in parent_types)
def get_parent_types ( self , case_type ) : parent_types = self . get_case_relationships_for_case_type ( case_type ) return set ( p [ 0 ] for p in parent_types )