Ë
    ¿AHj  ã                  óÐ   — 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«        e«       dddœ	 	 	 	 	 	 	 	 	 d
d	„«       Zy# 1 sw Y   Œ%xY w)é    )ÚannotationsN)ÚTYPE_CHECKING)Úunstable)Ú
SchemaDict)Úassert_schema_equal_pyT©Úcheck_column_orderÚcheck_dtypesc               óF   — ddl m} t         || «       ||«      ||¬«       y)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   )Úleft_schemaÚright_schemar	   r
   r   s        úU/root/tools/cai/cai_env/lib/python3.12/site-packages/polars/testing/asserts/schema.pyÚassert_schema_equalr      s&   € õT äÙˆ{ÓÙˆ|ÓØ-Ø!ö	ó    )
r   r   r   r   r	   Úboolr
   r   ÚreturnÚNone)Ú
__future__r   Ú
contextlibÚtypingr   Úpolars._utils.unstabler   Úpolars._typingr   ÚsuppressÚImportErrorÚpolars._plrr   r   © r   r   ú<module>r      s‹   ðÝ "ã Ý  å +áÝ)à€Z×Ñ˜Ó%ñ 3Ý2÷3ñ 
ƒð
  $Øñ0Øð0àð0ð ð	0ð
 ð0ð 
ò0ó ñ0÷3ð 3ús   ±AÁA%