§
    ’©ºj"  ã                   óB   — d dl mZ d dlmZ dededee         defd„ZdS )	é    )Úpartial)ÚMockÚmethod_nameÚinstanceÚparentÚreturnc                 óf  — t          || d¦  «        }|€dS t          |d¦  «        r|j        }t          |t          ¦  «        r|j        }nt          |t          ¦  «        r|j        }|€dS t          || d¦  «        }|€t          d¦  «        ‚t          |d¦  «        r|j        }|j	        |j	        k    S )a]  Return True if ``instance`` overrides ``parent.method_name``.

    Supports functions wrapped with ``functools.wraps``, context managers (``__wrapped__``),
    ``unittest.mock.Mock(wraps=...)``, and ``functools.partial``. If the parent does not define
    ``method_name``, a ``ValueError`` is raised.

    Args:
        method_name: The name of the method to check.
        instance: The object instance to inspect.
        parent: The parent class that declares the original method.

    Returns:
        True if the method implementation on the instance differs from the parent's; otherwise False.

    NFÚ__wrapped__z#The parent should define the method)
ÚgetattrÚhasattrr
   Ú
isinstancer   Ú_mock_wrapsr   ÚfuncÚ
ValueErrorÚ__code__)r   r   r   Úinstance_attrÚparent_attrs        úr/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/lightning_utilities/core/overrides.pyÚis_overriddenr   	   sÌ   € õ  ˜H k°4Ñ8Ô8€MØÐØˆuåˆ}˜mÑ,Ô,ð 2Ø%Ô1ˆå�-¥Ñ&Ô&ð +à%Ô1ˆˆå	�M¥7Ñ	+Ô	+ð +Ø%Ô*ˆØÐØˆuå˜& +¨tÑ4Ô4€KØÐÝÐ>Ñ?Ô?Ð?åˆ{˜MÑ*Ô*ð .Ø!Ô-ˆàÔ! [Ô%9Ò9Ð9ó    N)	Ú	functoolsr   Úunittest.mockr   ÚstrÚobjectÚtypeÚboolr   © r   r   ú<module>r      si   ðð
 Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ð':˜sð ':¨fð ':¸dÀ6¼lð ':Ètð ':ð ':ð ':ð ':ð ':ð ':r   