
    AHjL                    H    d dl mZ d dlmZmZmZ  ed      Z	 	 	 	 	 	 ddZy)    )annotations)CallableIterableTypeVarTc                |    g g f}|d   j                   |d   j                   f}|D ]  } | | |          |        |S )a  Partition a sequence into two list from a given predicate. The first list will contain
    the values where the predicate is False, the second list will contain the remaining values.

    Args:
        predicate: A callable that returns True or False for a given value.
        iterable: In Iterable of values.

    Returns:
        A list of values where the predicate is False, and a list
            where the predicate is True.
       r   )append)	predicateiterableresultappendsvalues        J/root/tools/cai/cai_env/lib/python3.12/site-packages/textual/_partition.py	partitionr      sV     (*2hFay!1!12G -%Ie$$%e,-M    N)r   zCallable[[T], object]r   zIterable[T]returnztuple[list[T], list[T]])
__future__r   typingr   r   r   r   r    r   r   <module>r      s4    " . .CL$0;r   