§
    Ò¬¸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        úm/root/private/project/pallet_detection_v2/.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