
    j                        d dl mZ d dlZd dlmZ d dlmZ erd dlmZ  ej	        e
          5  d dlmZ ddd           n# 1 swxY w Y    e            ddddd            ZdS )    )annotationsN)TYPE_CHECKING)unstable)
SchemaDict)assert_schema_equal_pyTcheck_column_ordercheck_dtypesleft_schemar   right_schemar	   boolr
   returnNonec               \    ddl m} t           ||            ||          ||           dS )aE  
    Assert that the schema of the left and right frame are equal.

    Raises a detailed `AssertionError` if the schemas of the frames differ.
    This function is intended for use in unit tests.

    .. warning::
        This functionality is considered **unstable**. It may be changed
        at any point without it being considered a breaking change.

    Parameters
    ----------
    left_schema
        The first DataFrame or LazyFrame to compare.
    right_schema
        The second DataFrame or LazyFrame to compare.
    check_column_order
        Requires column order to match.
    check_dtypes
        Requires data types to match.

    Examples
    --------
    >>> import polars as pl
    >>> from polars.testing import assert_schema_equal
    >>> df1 = pl.DataFrame({"b": [3, 4], "a": [1, 2]})
    >>> df2 = pl.DataFrame({"a": [1, 2], "b": [3, 4]})
    >>> assert_schema_equal(df1.schema, df2.schema)
    Traceback (most recent call last):
    ...
    AssertionError: Schemas are different (columns are not in the same order)
    [left]: ["b", "a"]
    [right]: ["a", "b"]
    r   )Schemar   N)polarsr   r   )r   r   r	   r
   r   s        b/home/longshao/multi-rider-rag/.venv/lib/python3.11/site-packages/polars/testing/asserts/schema.pyassert_schema_equalr      sX    T {|-!	         )
r   r   r   r   r	   r   r
   r   r   r   )
__future__r   
contextlibtypingr   polars._utils.unstabler   polars._typingr   suppressImportErrorpolars._plrr   r    r   r   <module>r      s   " " " " " "                 + + + + + + *))))))Z%% 3 32222223 3 3 3 3 3 3 3 3 3 3 3 3 3 3 

  $0 0 0 0 0 0 0 0s   AA	A