@classmethod
def __copy__(cls, the_filter: 'FilterRepeater') ->'FilterRepeater':
    """
        Creates a shallow copy of the object.
        """
    new_filter = super().__copy__(the_filter)
    new_filter._filter_chain = the_filter._filter_chain
    new_filter.restrict_keys = the_filter.restrict_keys
    return new_filter
